diff --git a/.github/workflows/release.yaml b/.github/workflows/publish.yaml similarity index 73% rename from .github/workflows/release.yaml rename to .github/workflows/publish.yaml index 7fbc695..ba3b624 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/publish.yaml @@ -1,4 +1,4 @@ -name: Release +name: Publish on: workflow_dispatch: @@ -19,15 +19,16 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - - name: Build Docker image - stage release + - name: Build publish_vite_plugin_vue_examples docker image - stage release uses: docker/build-push-action@v5.3.0 with: context: . - target: release - secrets: | - NPM_AUTH_TOKEN=${{ secrets.NPM_AUTH_TOKEN }} + tags: publish_vite_plugin_vue_examples cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max + - name: Publish vite_plugin_vue_examples + run: | + docker run -e NPM_AUTH_TOKEN="${{ secrets.NPM_AUTH_TOKEN }}" publish_vue_examples - name: Prevent consistently growing buildx cache run: | rm -rf /tmp/.buildx-cache diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 09a02a0..508e39c 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -21,11 +21,11 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - - name: Build Docker image - stage verify + - name: Build publish_vite_plugin_vue_examples docker image uses: docker/build-push-action@v5.3.0 with: context: . - target: verify + tags: publish_vite_plugin_vue_examples cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - name: Prevent consistently growing buildx cache