Split release workflow

pull/295/head
Anton Medvedev 2 months ago
parent 14e1bd8f5f
commit 6340aba8a2
No known key found for this signature in database

@ -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:

@ -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

@ -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).

Loading…
Cancel
Save