diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..49d28e1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: Bob the Builder + +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: make diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9213259 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release General + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Build and upload release tarball + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: | + make + - name: Build release + run: | + make dist + ls -lF ../ + mkdir -p artifacts/ + mv ../*.tar.* artifacts/ + - name: Extract ChangeLog entry ... + run: | + awk '/-----*/{if (x == 1) exit; x=1;next}x' ChangeLog.md \ + |head -n -1 > release.md + cat release.md + - uses: ncipollo/release-action@v1 + with: + name: mtools ${{ github.ref_name }} + bodyFile: "release.md" + artifacts: "artifacts/*"