diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67225de..af12ee3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Create Release +name: Releases on: push: @@ -6,30 +6,14 @@ on: - '*' jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 14 - - name: Install Dependencies - run: npm install - - - name: Create Release - run: npm run release - - - name: Push Tags - run: git push origin --tags - - exclude-files: + build: runs-on: ubuntu-latest - needs: release + permissions: + contents: write steps: - - name: Remove Unwanted Files - run: | - rm -f .editorconfig .eslintrc.js .gitattributes .gitignore .prettierrc README.md package.json webpack.mix.js yarn.lock + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + artifacts: "release.tar.gz,foo/*.txt" + bodyFile: "body.md"