From f732d7f8f2f2dc78213af36550ecc44c4a2bebc1 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Thu, 14 Mar 2024 14:04:00 -0400 Subject: [PATCH] Add pgxn-releas workflow Also add .gitattributes so that `git archive` excludes files not needed in the release archive. --- .gitattributes | 3 +++ .github/workflows/pgxn-release.yml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/workflows/pgxn-release.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..97b7613 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.gitignore export-ignore +.gitattributes export-ignore +.github export-ignore diff --git a/.github/workflows/pgxn-release.yml b/.github/workflows/pgxn-release.yml new file mode 100644 index 0000000..439c60f --- /dev/null +++ b/.github/workflows/pgxn-release.yml @@ -0,0 +1,20 @@ +name: ⚙️ Release on PGXN +on: + push: + # Release on semantic version tag. + # tags: ['v[0-9]+.[0-9]+.[0-9]+'] +jobs: + release: + name: Release on PGXN + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Bundle the Release + run: pgxn-bundle + - name: Release on PGXN + env: + PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }} + PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }} + run: pgxn-release