mirror of
https://github.com/antonmedv/fx.git
synced 2024-08-18 06:30:33 +03:00
Split release workflow
This commit is contained in:
parent
14e1bd8f5f
commit
6340aba8a2
@ -1,30 +1,8 @@
|
|||||||
name: release
|
name: brew
|
||||||
|
|
||||||
on: [release, workflow_dispatch]
|
on: [workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
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:
|
brew:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
26
.github/workflows/snap.yml
vendored
Normal file
26
.github/workflows/snap.yml
vendored
Normal file
@ -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).
|
3. Bump version in [package.json](npm/package.json).
|
||||||
4. Commit changes.
|
4. Commit changes.
|
||||||
5. Publish npm package.
|
5. Publish npm package.
|
||||||
6. Create a new release on [GitHub](https://github.com/antonmedv/fx/releases/new).
|
6. Trigger [GitHub Actions](https://github.com/antonmedv/fx/actions) (brew, snap, docker).
|
||||||
7. Run [build.mjs](scripts/build.mjs) to upload binaries to the release.
|
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
|
```sh
|
||||||
npx zx scripts/build.mjs
|
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).
|
to [fx.wtf](https://fx.wtf).
|
||||||
|
Loading…
Reference in New Issue
Block a user