Skip to content

Commit

Permalink
ci: fix workflow (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Aug 18, 2024
1 parent 00b0c28 commit 8d20c65
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/update-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -72,6 +73,18 @@ jobs:
run: |
npm install
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Prepare gh-pages
run: |
# empty contents
rm -f -r ./gh-pages/*
# copy dependencies
cp -f ./node_modules/plotly.js/dist/plotly.min.js ./gh-pages/plotly.js
- name: Convert notebook
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN || secrets.GITHUB_TOKEN }}
Expand All @@ -86,18 +99,6 @@ jobs:
--output=index \
./notebook/dashboard.ipynb
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Prepare gh-pages
run: |
# empty contents
rm -f -r ./gh-pages/*
# copy dependencies
cp -f ./node_modules/plotly.js/dist/plotly.min.js ./gh-pages/plotly.js
- name: Archive gh-pages
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
shell: bash
Expand Down

0 comments on commit 8d20c65

Please sign in to comment.