Skip to content

Commit 6caaf07

Browse files
authored
chore: rename to on-tag and trigger web build (#693)
1 parent 381f960 commit 6caaf07

File tree

2 files changed

+44
-16
lines changed

2 files changed

+44
-16
lines changed

.github/workflows/on-tag.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: On Tag
2+
3+
on:
4+
push:
5+
tags: 'v*'
6+
7+
jobs:
8+
pr-to-homebrew:
9+
name: Homebrew
10+
runs-on: macos-latest
11+
steps:
12+
- uses: Homebrew/actions/setup-homebrew@master
13+
- id: version
14+
run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
15+
- run: brew bump-cask-pr gitify --version=${{ steps.version.outputs.version }} --message="Bump gitify to ${{ steps.version.outputs.version }}"
16+
env:
17+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }}
18+
19+
update-website:
20+
name: Website
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
repository: gitify-app/website
26+
token: ${{ secrets.GH_TOKEN }}
27+
- uses: pnpm/action-setup@v2
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version-file: '.nvmrc'
31+
cache: 'pnpm'
32+
- id: version
33+
run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
34+
- name: setup git config
35+
run: |
36+
git config user.name "Gitify Version Bot"
37+
git config user.email "<>"
38+
- run: git checkout -b "bump/${{ steps.version.outputs.version }}"
39+
- run: pnpm version ${{ steps.version.outputs.version }}
40+
- run: git push origin "bump/${{ steps.version.outputs.version }}"
41+
- uses: actions/github-script@v6
42+
with:
43+
script: |
44+
core.notice('Create PR by going to: https://github.com/gitify-app/website/compare/bump/${{ steps.version.outputs.version }}')

.github/workflows/trigger-homebrew.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)