mirror of
https://github.com/sussy-code/sudo-proxy.git
synced 2026-01-11 20:10:18 +00:00
GitHub Actions: Switch back to GH actions, use sha for tag
This commit is contained in:
parent
c5bd7cea23
commit
b28caeb3e6
1 changed files with 18 additions and 7 deletions
25
.github/workflows/build_release.yml
vendored
25
.github/workflows/build_release.yml
vendored
|
|
@ -33,11 +33,22 @@ jobs:
|
|||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
allowUpdates: true
|
||||
artifacts: ./dist/worker.js
|
||||
artifactContentType: text/javascript
|
||||
replacesArtifacts: true
|
||||
tag: latest
|
||||
name: Simple Proxy Worker
|
||||
tag_name: ${{ github.sha }}
|
||||
release_name: Simple Proxy Worker
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./dist/worker.js
|
||||
asset_name: worker.js
|
||||
asset_content_type: text/javascript
|
||||
|
|
|
|||
Loading…
Reference in a new issue