Skip to content

Commit f3defd1

Browse files
fix: github ci
1 parent d92b1f9 commit f3defd1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
run: |
2424
mkdir -p /tmp/package
2525
cp -R .sourceknight/package/* /tmp/package
26-
cp -R addons/sourcemod/{configs,translations} /tmp/package/common/addons/sourcemod/
26+
cp -R addons/sourcemod/configs /tmp/package/common/addons/sourcemod/
27+
cp -R addons/sourcemod/translations /tmp/package/common/addons/sourcemod/
2728
2829
- name: Upload build archive for test runners
2930
uses: actions/upload-artifact@v3
@@ -33,19 +34,22 @@ jobs:
3334

3435
tag:
3536
name: Tag
36-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
3737
needs: build
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/checkout@v3
41+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
42+
4143
- uses: dev-drprasad/delete-tag-and-release@v0.2.0
44+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
4245
with:
4346
delete_release: true
4447
tag_name: latest
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4750

4851
- uses: rickstaa/action-create-tag@v1
52+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
4953
with:
5054
tag: "latest"
5155
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)