From 62eed89d23cb6b81631fdf6cc64c94bcc6ea3a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 17 Apr 2021 12:54:22 +0200 Subject: [PATCH] Add release workflow --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7ec240a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +on: + push: + tags: + - "v*" + +name: Upload Release Asset + +jobs: + build: + name: Upload Release Asset + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install -y make + - uses: actions/setup-node@v1 + with: + node-version: "12" + - name: Checkout code + uses: actions/checkout@v2 + - run: yarn install + - run: make + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Push ${{ github.ref }} + draft: false + prerelease: ${{ contains(github.ref, 'rc') }} + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./be.bastelstu.bottle.tar + asset_name: be.bastelstu.bottle.tar + asset_content_type: application/x-tar