From b3386041b5f558a98319baad4a00a7eebb73d989 Mon Sep 17 00:00:00 2001 From: Will Date: Fri, 27 Sep 2024 17:43:22 -0400 Subject: [PATCH] ci: hopefully fix release by using PAT (#37) also update name of build action and show we only want it run on prs and tags --- .github/workflows/actions.yml | 4 +--- .github/workflows/release.yml | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 492adbc9..13f7b5a3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,4 @@ -name: CNPlus CI +name: CNPlus CI (Android) App Build env: # The name of the main module repository @@ -11,8 +11,6 @@ env: on: push: - branches: - - main tags: - '**' pull_request: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e156891..2ab3aff0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,7 @@ jobs: contents: write if: startsWith(github.event.head_commit.message, 'build:') steps: + - name: Checkout code uses: actions/checkout@v4 with: @@ -61,6 +62,8 @@ jobs: - name: Release # Pushing a tag triggers a release + env: + GH_TOKEN: ${{ secrets.CALENDAR_NOTIFICATIONS_PLUS_PAT_TOKEN }} run: npx semantic-release - name: Setup tmate session