update ci

This commit is contained in:
larzie 2024-11-27 18:53:15 +03:00 committed by GitHub
parent 8f820929fc
commit 0d2ada4240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
name: Publish Tar
on:
workflow_dispatch:
inputs:
@ -17,25 +18,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4
- name: Archive
run: tar -cf archive.tar ./*
- name: Output version from file to variable
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
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: archive.tar
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: |
### Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
- sha: ${{ github.sha }}