Skip to content

Make release

Make release #11

Workflow file for this run

name: πŸš€ Bundle and Release
on:
push:
# Release on semantic version tag.
# tags: ['v[0-9]+.[0-9]+.[0-9]+']
jobs:
release:
name: πŸš€ Release on PGXN and GitHub
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }}
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Bundle the Release
id: bundle
env: { GIT_BUNDLE_OPTS: --add-file META.json }
run: make META.json && pgxn-bundle
# - name: Release on PGXN
# run: pgxn-release
- name: Generate Release Notes
id: notes
uses: theory/changelog-version-notes-action@path
with: { version: v0.1.3 }
- name: Create GitHub Release
id: release
uses: actions/create-release@v1
with:
tag_name: v0.1.3
release_name: Release v0.1.3
body_path: '${{ steps.notes.outputs.file }}'
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: ./${{ steps.bundle.outputs.bundle }}
asset_name: ${{ steps.bundle.outputs.bundle }}
asset_content_type: application/zip