Skip to content

Commit

Permalink
Update to generate releases with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nealfennimore committed Dec 7, 2024
1 parent b1bfaa7 commit 97eaaf3
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy Next.js to GitHub Pages

on:
push:
branches:
- main # Change this to your default branch if different
tags:
- '*'

permissions:
contents: write
Expand All @@ -26,8 +26,16 @@ jobs:
run: |
echo NEXT_PUBLIC_API_URL=https://nist-sp-800-171.neal.codes >> .env
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v2
id: node-cache
with:
path: ./client/node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm install
if: steps.node-cache.outputs.cache-hit != 'true'
working-directory: ./client

- name: Build App
Expand All @@ -39,4 +47,9 @@ jobs:
with:
cname: nist-sp-800-171.neal.codes
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/out # This is the default output directory for `next export`
publish_dir: ./client/out # This is the default output directory for `next export`

- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true

0 comments on commit 97eaaf3

Please sign in to comment.