Merge pull request #2 from mook-as/ci/release-automation #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release OpenResty | |
on: { push: { tags: [ '*' ] } } | |
permissions: {} | |
jobs: | |
package: | |
uses: ./.github/workflows/package.yaml | |
with: | |
release-version: ${{ github.ref_name }} | |
release: | |
needs: package | |
runs-on: ubuntu-latest | |
permissions: { contents: write } | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ref: ${{ github.ref_name }} | |
run: >- | |
gh release create | |
"$ref" | |
openresty-*.tar/*.tar | |
--draft | |
--title "${ref#test-}" | |
--repo "${{ github.repository }}" |