Skip to content

Commit b673fe3

Browse files
committed
Avoid a third-party GH Actions
OpenRA PR 21805.
1 parent c9599cb commit b673fe3

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.github/workflows/packaging.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ jobs:
3232
./packaging/linux/buildpackage.sh "${GIT_TAG}" "${PWD}/build/linux"
3333
3434
- name: Upload Packages
35-
uses: svenstaro/upload-release-action@v2
36-
with:
37-
repo_token: ${{ secrets.GITHUB_TOKEN }}
38-
tag: ${{ github.ref }}
39-
overwrite: true
40-
file_glob: true
41-
file: build/linux/*
35+
env:
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
shell: bash
38+
run: |
39+
gh release upload ${{ github.ref_name }} build/linux/*
4240
4341
macos:
4442
name: macOS Disk Image
@@ -68,13 +66,11 @@ jobs:
6866
./packaging/macos/buildpackage.sh "${GIT_TAG}" "${PWD}/build/macos"
6967
7068
- name: Upload Package
71-
uses: svenstaro/upload-release-action@v2
72-
with:
73-
repo_token: ${{ secrets.GITHUB_TOKEN }}
74-
tag: ${{ github.ref }}
75-
overwrite: true
76-
file_glob: true
77-
file: build/macos/*
69+
env:
70+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
shell: bash
72+
run: |
73+
gh release upload ${{ github.ref_name }} build/macos/*
7874
7975
windows:
8076
name: Windows Installers
@@ -101,10 +97,8 @@ jobs:
10197
./packaging/windows/buildpackage.sh "${GIT_TAG}" "${PWD}/build/windows"
10298
10399
- name: Upload Packages
104-
uses: svenstaro/upload-release-action@v2
105-
with:
106-
repo_token: ${{ secrets.GITHUB_TOKEN }}
107-
tag: ${{ github.ref }}
108-
overwrite: true
109-
file_glob: true
110-
file: build/windows/*
100+
env:
101+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102+
shell: bash
103+
run: |
104+
gh release upload ${{ github.ref_name }} build/windows/*

0 commit comments

Comments
 (0)