forked from TrueCloudLab/frostfs-locode-db
[#25] ci: Publish release artifacts automatically
All checks were successful
build / locode (push) Successful in 1m29s
All checks were successful
build / locode (push) Successful in 1m29s
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
1a38db8a2b
commit
4cb1f84fa8
1 changed files with 38 additions and 0 deletions
38
.forgejo/workflows/build.yml
Normal file
38
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name: build
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: locode
|
||||||
|
runs-on: docker
|
||||||
|
container: node:22-bookworm
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.23'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
|
- name: Build LOCODE database
|
||||||
|
run: |-
|
||||||
|
make all
|
||||||
|
mkdir -p artifacts
|
||||||
|
mv -v frostfs-locode-db artifacts/
|
||||||
|
gzip --stdout --best locode_db > artifacts/locode_db.gz
|
||||||
|
|
||||||
|
- name: Publish release
|
||||||
|
if: >-
|
||||||
|
startsWith(github.ref, 'refs/tags/v') &&
|
||||||
|
(github.event_name == 'workflow_dispatch' || github.event_name == 'push')
|
||||||
|
uses: actions/release@v2
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: artifacts
|
||||||
|
token: ${{secrets.PUSH_RELEASE_TOKEN}} # user:read, repository:write
|
Loading…
Add table
Reference in a new issue