Skip to content

Commit 02825c3

Browse files
authored
ci: retain artifacts only
1 parent fac1f35 commit 02825c3

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

.github/workflows/plugin.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -30,58 +30,3 @@ jobs:
3030
with:
3131
name: ${{ runner.os }}
3232
path: /tmp/package
33-
34-
tag:
35-
name: Tag
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v3
40-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/php81'
41-
42-
- uses: dev-drprasad/delete-tag-and-release@v0.2.1
43-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/php81'
44-
with:
45-
delete_release: true
46-
tag_name: latest
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- uses: rickstaa/action-create-tag@v1
51-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/php81'
52-
with:
53-
tag: "latest"
54-
github_token: ${{ secrets.GITHUB_TOKEN }}
55-
56-
release:
57-
name: Release
58-
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/php81'
59-
needs: [build, tag]
60-
runs-on: ubuntu-latest
61-
steps:
62-
- name: Download artifacts
63-
uses: actions/download-artifact@v3
64-
65-
- name: Versioning
66-
run: |
67-
version="latest"
68-
if [[ "${{ github.ref_type }}" == 'tag' ]]; then
69-
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"`;
70-
fi
71-
echo "RELEASE_VERSION=$version" >> $GITHUB_ENV
72-
- name: Package
73-
run: |
74-
ls -Rall
75-
if [ -d "./Linux/" ]; then
76-
cd ./Linux/
77-
tar -czf ../${{ github.event.repository.name }}-${{ env.RELEASE_VERSION }}.tar.gz -T <(\ls -1)
78-
cd -
79-
fi
80-
- name: Release
81-
uses: svenstaro/upload-release-action@v2
82-
with:
83-
repo_token: ${{ secrets.GITHUB_TOKEN }}
84-
file: '*.tar.gz'
85-
tag: ${{ env.RELEASE_VERSION }}
86-
file_glob: true
87-
overwrite: true

0 commit comments

Comments
 (0)