Improved loading background control #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Artifact | |
on: | |
push: | |
tags: ["v*"] | |
permissions: | |
contents: write | |
concurrency: | |
group: "release" | |
cancel-in-progress: false | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: yarn | |
- name: Restore cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
dist | |
.nuxt | |
.output | |
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} | |
restore-keys: | | |
${{ runner.os }}-nuxt-build- | |
- name: Install dependencies | |
run: yarn install | |
- name: Generate Static Site | |
run: yarn run generate | |
env: | |
NUXT_APP_BASE_URL: "/" | |
- name: Create Archive | |
run: | | |
pushd .output/public | |
zip -r ../../release.zip . | |
popd | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: release.zip |