Skip to content

Commit

Permalink
ci: hopefully fix release by using PAT (#37)
Browse files Browse the repository at this point in the history
also update name of build action and show we only want it run on prs and
tags
  • Loading branch information
williscool authored Sep 27, 2024
1 parent 59f1281 commit b338604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CNPlus CI
name: CNPlus CI (Android) App Build

env:
# The name of the main module repository
Expand All @@ -11,8 +11,6 @@ env:

on:
push:
branches:
- main
tags:
- '**'
pull_request:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
contents: write
if: startsWith(github.event.head_commit.message, 'build:')
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b338604

Please sign in to comment.