From 217aa02b56151fa68e80c35a6aa98d707a0720f4 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 23 Oct 2024 19:22:50 -0400 Subject: [PATCH] add action def for release --- .github/release.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..68681af --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,39 @@ +# CSVD/release-tag +name: Release Tag + +# Controls when the workflow will run +on: + push: + branches: + - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: write-all +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + Tag: + # The type of runner that the job will run on + runs-on: ["229685449397"] + + steps: + - uses: CSVD/gh-actions-checkout@v4 + id: checkout + with: + persist-credentials: false + + - name: Setup GITHUB Credentials + id: github_credentials + uses: CSVD/gh-auth@main + with: + github_app_pem_file: ${{ secrets.GH_APP_PEM_FILE }} + github_app_installation_id: ${{ vars.GH_APP_INSTALLATION_ID }} + github_base_url: "${{ github.server_url }}/" + + - name: Tag Release + uses: CSVD/release-tag@main + with: + patch: true + env: + GITHUB_TOKEN: ${{ steps.github_credentials.outputs.github_token }}