From b009b533b44173eb6e34017019f99c84fabec5d1 Mon Sep 17 00:00:00 2001 From: jem Date: Mon, 29 Jun 2020 09:56:37 +0200 Subject: [PATCH] test package a release --- .github/workflows/release-dev.yml | 26 ++++++++++++++++++++++++-- .github/workflows/test-matrix.yml | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index 1f8866d..881853d 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -24,7 +24,7 @@ jobs: - run: npm install -g --save-dev shadow-cljs - run: shadow-cljs compile test - release-dev: + release-build-dev: name: release dev needs: test-matrix runs-on: ubuntu-latest @@ -42,8 +42,30 @@ jobs: - run: npm install -g --save-dev shadow-cljs - run: shadow-cljs release app - run: rm -rf target/npm-build - - run: mkdir target/npm-build + - run: mkdir -p target/npm-build - run: cp mastodon-bot.js target/npm-build/ - run: cp package.json target/npm-build/ - run: cp README.md target/npm-build/ - run: tar -cz -C target/npm-build -f target/npm-build.tgz . + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: true + - 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: ./mastodon-bot.js + asset_name: mastodon-bot.js + asset_content_type: application/json + \ No newline at end of file diff --git a/.github/workflows/test-matrix.yml b/.github/workflows/test-matrix.yml index b32fc25..5ac3c55 100644 --- a/.github/workflows/test-matrix.yml +++ b/.github/workflows/test-matrix.yml @@ -2,7 +2,7 @@ name: Node.js CI on: push: - branches: [ master, automate_gh_release ] + branches: [ never ] pull_request: branches: [ master ]