mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-04-26 00:43:14 +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
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
tag_name: ${{ github.sha }}
|
||||||
artifacts: ./dist/worker.js
|
release_name: Simple Proxy Worker
|
||||||
artifactContentType: text/javascript
|
draft: false
|
||||||
replacesArtifacts: true
|
prerelease: false
|
||||||
tag: latest
|
|
||||||
name: Simple Proxy Worker
|
- 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