Compare commits

...

6 commits

Author SHA1 Message Date
Piotr Grabowski 9f092010fb chore(makefile): replace pushd with cd 2022-09-12 17:13:23 +02:00
Piotr Grabowski 68d8439b6b explo(ghactions): - 2022-09-12 17:02:11 +02:00
Piotr Grabowski afaaa3f4e1 explo(ghactions): - 2022-09-12 17:01:04 +02:00
Piotr Grabowski bd2ef3d400 explo(ghactions): - 2022-09-12 16:52:49 +02:00
Piotr Grabowski e099487fb0 explo(ghactions): - 2022-09-12 16:50:18 +02:00
Piotr Grabowski 5d8416cdc2 explo(ghactions): - 2022-09-12 16:47:23 +02:00
2 changed files with 31 additions and 1 deletions

30
.github/workflows/dist.yml vendored Normal file
View file

@ -0,0 +1,30 @@
---
name: dist
"on":
push:
branches: [master, explo/gh-actions]
jobs:
dist:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "^1.19.1"
- name: Install dependencies
run: |
sudo apt update
sudo apt install libgtk-3-dev libcairo2-dev libglib2.0-dev
- name: Run `make dist`
run: make dist
- name: Upload dist package
uses: actions/upload-artifact@v3
with:
name: dist-package
path: target/Gomics*.zip

View file

@ -19,6 +19,6 @@ dist: build
cp README.md target/dist/gomicsv; \ cp README.md target/dist/gomicsv; \
cp COPYING.md target/dist/gomicsv; \ cp COPYING.md target/dist/gomicsv; \
cp CHANGELOG.md target/dist/gomicsv; \ cp CHANGELOG.md target/dist/gomicsv; \
pushd target/dist; \ cd target/dist; \
zip -r ../Gomics-v_$(VERSION).zip gomicsv; \ zip -r ../Gomics-v_$(VERSION).zip gomicsv; \
rm -rf gomicsv; \ rm -rf gomicsv; \