Skip to content

Commit

Permalink
Cleaned up workflow file. Trying out a less specific node version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrello committed Dec 6, 2024
1 parent b4eb338 commit ffb27b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
- develop

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -16,7 +15,6 @@ jobs:
env:
TARGET_BRANCH: gh-pages
MAIN_BRANCH: main
DEVELOP_BRANCH: develop

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -43,7 +41,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18.17.0"
node-version: "18"

- name: Cache dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -76,16 +74,6 @@ jobs:
npm run build --base=/
cp -a $GITHUB_WORKSPACE/dist/* $GITHUB_WORKSPACE/gh-pages
# If develop branch:
# - Remove existing 'latest' directory, if it exists.
# - Move build into 'latest' directory.
- name: Develop branch preparations
if: github.ref == format('refs/heads/{0}', env.DEVELOP_BRANCH)
run: |
npm run build --base=/latest/
rm -rf $GITHUB_WORKSPACE/gh-pages/latest
mv $GITHUB_WORKSPACE/dist $GITHUB_WORKSPACE/gh-pages/latest
# Look at the 'gh-pages' directory to see if everything looks right.
# - run: ls -lah $GITHUB_WORKSPACE/gh-pages

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.0
18

0 comments on commit ffb27b4

Please sign in to comment.