diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b1c5bf..fabc89d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,7 @@ jobs: name: ${{ env.ASSET }} path: ${{ env.ASSET }} release: - # if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') }} runs-on: ubuntu-latest needs: [build] steps: @@ -88,6 +88,13 @@ jobs: - name: Download archives uses: actions/download-artifact@v2 with: - name: artifact + path: artifact - name: Show downloaded files run: ls -lRh artifact/ + - name: Create release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: artifact/*/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dc755a..b3598fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,9 @@ name: ci - on: push: branches: - main pull_request: - jobs: ci: runs-on: ${{ matrix.os }}