From cfd6adc65f8da7f2eb3e8069f7a5b0e88009be6c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Jun 2023 03:18:37 -0400 Subject: [PATCH] refactor: simplify for now and use a single job --- .github/workflows/main.yml | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b57cc21..87c9d8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,38 +15,11 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present - - run: touch build.tar.gz - - name: Archive Release - uses: thedoctor0/zip-release@0.7.1 - with: - type: tar - filename: build.tar.gz - exclusions: "*.git* build.tar.gz node_modules/**" - - name: Cache build - uses: actions/upload-artifact@v3 - with: - name: cache-${{ github.run_id }}-${{ github.run_attempt }} - path: build.tar.gz - publish: - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 18.x - cache: 'npm' - - name: Fetch build cache - uses: actions/download-artifact@v3 - with: - name: cache-${{ github.run_id }}-${{ github.run_attempt }} - - name: Extract build cache - run: tar xvf build.tar.gz && rm build.tar.gz -f - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.GITEA_SSH_KEY }} - name: gitea # optional + name: gitea known_hosts: ${{ secrets.GITEA_KNOWN_HOST }} - - run: npm run semantic-release + - name: Publish + run: npm run semantic-release