Skip to content

Commit

Permalink
ci: rel cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Jul 9, 2020
1 parent 1409de7 commit 1581632
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: RelBot
name: REL

on:
push:
Expand All @@ -8,23 +8,27 @@ on:

jobs:
release:
name: Create Release
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v2
- name: Build

- name: Build tarball
id: build
run: |
make checkver
make dist
EXTENSION=$(grep ^EXTENSION Makefile | sed 's/.*= *//')
EXT_VERSION=$(grep ^EXT_VERSION Makefile | sed 's/.*= *//')
test "${{github.ref}}" = "refs/tags/v${EXT_VERSION}" || { echo "ERR: tag mismatch"; exit 1; }
echo "::set-env name=EXTENSION::${EXTENSION}"
echo "::set-env name=EXT_VERSION::${EXT_VERSION}"
echo "::set-env name=TGZ::${EXTENSION}-${EXT_VERSION}.tar.gz"
- name: Create release
id: create_release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -35,13 +39,13 @@ jobs:
draft: false
prerelease: false

- name: Upload release
id: upload_release
- name: Upload source
id: upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
upload_url: ${{steps.release.outputs.upload_url}}
asset_path: ${{env.TGZ}}
asset_name: ${{env.TGZ}}
asset_content_type: application/x-gzip
Expand Down

0 comments on commit 1581632

Please sign in to comment.