From e08fdbecbc03cb9c7bf46aa67556553bc75880d7 Mon Sep 17 00:00:00 2001 From: lana-k Date: Tue, 10 Nov 2020 18:53:42 +0100 Subject: [PATCH] fix Create release action --- .github/workflows/main.yml | 8 +++++++- .github/workflows/release.yml | 23 ----------------------- 2 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96796ad..6afe430 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: Use Node.js uses: actions/setup-node@v1 with: @@ -20,6 +20,12 @@ jobs: npm install npm run build + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifact: "dist" + token: ${{ secrets.GITHUB_TOKEN }} + - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@3.6.2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f06c0a9..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Create Release -on: - push: - tags: - - '*' - -jobs: - build: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - 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: false - prerelease: false \ No newline at end of file