Skip to content

Commit

Permalink
Split release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Mar 11, 2024
1 parent 14e1bd8 commit 6340aba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/release.yml → .github/workflows/brew.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
name: release
name: brew

on: [release, workflow_dispatch]
on: [workflow_dispatch]

jobs:
snap:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: master

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- uses: snapcore/action-build@v1
id: build

- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.MY_SNAPCRAFT_CREDENTIALS }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable

brew:
runs-on: macos-latest
steps:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: snap

on: [workflow_dispatch]

jobs:
snap:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: master

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- uses: snapcore/action-build@v1
id: build

- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.MY_SNAPCRAFT_CREDENTIALS }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable
7 changes: 4 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
3. Bump version in [package.json](npm/package.json).
4. Commit changes.
5. Publish npm package.
6. Create a new release on [GitHub](https://github.com/antonmedv/fx/releases/new).
7. Run [build.mjs](scripts/build.mjs) to upload binaries to the release.
6. Trigger [GitHub Actions](https://github.com/antonmedv/fx/actions) (brew, snap, docker).
7. Create a new release on [GitHub](https://github.com/antonmedv/fx/releases/new).
8. Run [build.mjs](scripts/build.mjs) to upload binaries to the release.
```sh
npx zx scripts/build.mjs
```
8. Bump version in [install.sh](https://github.com/antonmedv/fx.wtf/blob/master/public/install.sh) and upload it
9. Bump version in [install.sh](https://github.com/antonmedv/fx.wtf/blob/master/public/install.sh) and upload it
to [fx.wtf](https://fx.wtf).

0 comments on commit 6340aba

Please sign in to comment.