Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya committed Nov 2, 2023
1 parent b32f65a commit 0e128ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,24 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v2
- run: echo $PUBLIC_MAPBOX_TOKEN
- name: Install, build, and upload your site
uses: withastro/action@v0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Node dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Move images News
run: mv public/images/news/dynamic/* dist/images/news/dynamic/
- name: Move images Interventions
run: mv public/images/interventions/dynamic/* dist/images/interventions/dynamic/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
retention-days: 5
path: ./dist

deploy:
needs: build
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ jobs:
run: npm ci
- name: Build site
run: npm run build
- name: List images
run: ls public/images/news/dynamic
- name: Move images
- name: Move images News
run: mv public/images/news/dynamic/* dist/images/news/dynamic/
- name: List images in dist
run: ls dist/images/news/dynamic
- name: Move images Interventions
run: mv public/images/interventions/dynamic/* dist/images/interventions/dynamic/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 0e128ff

Please sign in to comment.