diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml new file mode 100644 index 0000000..c1884b1 --- /dev/null +++ b/.github/workflows/dist.yml @@ -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 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; \