From 1476cf12882091125d052d94f01242b02a96e140 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Sat, 12 Feb 2022 17:13:31 +0200 Subject: [PATCH] ci(repo): unrevert --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cf0df1..cbab65e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,6 @@ jobs: path: packages/chrome/dist/ firefox_extension: - if: ${{ false }} needs: hunspell_dictionaries runs-on: ubuntu-latest steps: @@ -130,7 +129,6 @@ jobs: path: packages/firefox/dist/ libreoffice_extension: - if: ${{ false }} needs: hunspell_dictionaries runs-on: ubuntu-latest steps: @@ -205,8 +203,11 @@ jobs: path: 'packages/npm/*.tgz' publish: + if: ${{ startsWith(github.ref, 'refs/tags/') }} needs: - hunspell_dictionaries + - firefox_extension + - libreoffice_extension - npm_package runs-on: ubuntu-latest steps: @@ -227,14 +228,12 @@ jobs: path: .temp - name: Download Firefox extension - if: ${{ false }} uses: actions/download-artifact@v2 with: name: firefox_extension path: .temp - name: Download Libreoffice extension - if: ${{ false }} uses: actions/download-artifact@v2 with: name: libreoffice_extension @@ -250,6 +249,13 @@ jobs: run: ls -R working-directory: .temp + - name: Publish a release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: '.temp/*' + generate_release_notes: true + - name: Publish to NPM run: | echo>.npmrc "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"