From 5d8416cdc2ad889b887a147fdc0e7144f9c26e90 Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 16:47:23 +0200 Subject: [PATCH 1/6] explo(ghactions): - --- .github/workflows/dist.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/dist.yml diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml new file mode 100644 index 0000000..bce2dc1 --- /dev/null +++ b/.github/workflows/dist.yml @@ -0,0 +1,12 @@ +--- +name: dist +jobs: + dist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: make dist + - uses: actions/upload-artifact@v3 + with: + name: dist-package + path: target/Gomics*.zip From e099487fb0ea51b047fff00509dbe893763a5338 Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 16:50:18 +0200 Subject: [PATCH 2/6] explo(ghactions): - --- .github/workflows/dist.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index bce2dc1..fca047f 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -1,5 +1,6 @@ --- name: dist +on: workflow_dispatch jobs: dist: runs-on: ubuntu-latest From bd2ef3d4003e336a050855ddedff7083493350de Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 16:52:49 +0200 Subject: [PATCH 3/6] explo(ghactions): - --- .github/workflows/dist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index fca047f..a86509b 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -1,6 +1,6 @@ --- name: dist -on: workflow_dispatch +on: push jobs: dist: runs-on: ubuntu-latest From afaaa3f4e164b1c5c67a470f85a38657c783c29b Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 17:01:04 +0200 Subject: [PATCH 4/6] explo(ghactions): - --- .github/workflows/dist.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index a86509b..5b0a209 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -1,13 +1,30 @@ --- name: dist -on: push +"on": + push: + branches: [master] jobs: dist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - run: make dist - - uses: actions/upload-artifact@v3 + - 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 From 68d8439b6b7c017911553fcde7e580a5c4db5030 Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 17:02:11 +0200 Subject: [PATCH 5/6] explo(ghactions): - --- .github/workflows/dist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 5b0a209..c1884b1 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -2,7 +2,7 @@ name: dist "on": push: - branches: [master] + branches: [master, explo/gh-actions] jobs: dist: runs-on: ubuntu-latest From 9f092010fb963087816b7d1c0f942138a226e5c6 Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Mon, 12 Sep 2022 17:13:23 +0200 Subject: [PATCH 6/6] chore(makefile): replace pushd with cd --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a77e761..5da8465 100755 --- a/Makefile +++ b/Makefile @@ -19,6 +19,6 @@ dist: build cp README.md target/dist/gomicsv; \ cp COPYING.md target/dist/gomicsv; \ cp CHANGELOG.md target/dist/gomicsv; \ - pushd target/dist; \ + cd target/dist; \ zip -r ../Gomics-v_$(VERSION).zip gomicsv; \ rm -rf gomicsv; \