Skip to content

test artifacts

test artifacts #4

Workflow file for this run

name: Next.js CI
on:
push:
branches: ["main"]
jobs:
build:
name: 🎉 Deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20.x"]
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🔨 Build Project
run: |
npm ci
npm run build --if-present
- name: List output files
run: find out/ -print
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Build
path: out
- name: Release
uses: softprops/action-gh-release@v1
with:
files: out
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}