diff --git a/.github/workflows/publish-tar.yml b/.github/workflows/publish-tar.yml index a279333..a3b68d9 100644 --- a/.github/workflows/publish-tar.yml +++ b/.github/workflows/publish-tar.yml @@ -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 }}