Skip to content

Commit ad728f3

Browse files
committed
build: remove manual releases
1 parent d0aff6f commit ad728f3

File tree

2 files changed

+23
-37
lines changed

2 files changed

+23
-37
lines changed

.github/workflows/publish.yml

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

.github/workflows/release.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
4+
push:
5+
branches:
6+
- "main"
7+
- "next"
58

69
env:
710
HUSKY: 0
@@ -14,11 +17,28 @@ jobs:
1417
steps:
1518
- uses: actions/checkout@v3
1619

20+
- uses: actions/setup-node@v3
21+
with:
22+
cache: "yarn"
23+
node-version-file: ".nvmrc"
24+
25+
# No lint or prettier here since they were supposed to run on PR action
26+
- name: Build
27+
run: |
28+
yarn install --frozen-lockfile
29+
yarn build
30+
31+
- name: Semantic Release
32+
uses: cycjimmy/semantic-release-action@v3
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
1737
- name: Publish to Cloudflare Pages
1838
uses: cloudflare/pages-action@1
1939
with:
20-
apiToken: ${{ secrets.CF_API_TOKEN }}
21-
accountId: ${{ secrets.CF_ACCOUNT_ID }}
40+
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
41+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT }}
2242
projectName: ${{ secrets.CF_PROJECT_NAME }}
2343
directory: public
2444
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)