This commit is contained in:
larzie 2025-04-11 23:44:41 +02:00 committed by GitHub
commit d3411300e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
name: Publish Tar name: Publish Tar
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@ -17,25 +18,26 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Archive - name: Archive
run: tar -cf archive.tar ./* run: tar -cf archive.tar ./*
- name: Output version from file to variable - name: Output version from file to variable
id: version id: version
run: echo "::set-output name=version::$(cat version)" run: |
echo "::set-output name=version::$(cat version)"
- name: Create Release - name: Create release
id: create_release id: create_release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
files: archive.tar files: archive.tar
tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
name: Release for Zen - ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} name: Release for Zen - ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
body: | body: |
### Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }} ### Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
- sha: `${{ github.sha }}` - sha: `${{ github.sha }}`