Skip to content

Commit

Permalink
fix: actions artifacts upload/download to v4, #141
Browse files Browse the repository at this point in the history
  • Loading branch information
weaponsforge committed Sep 27, 2024
1 parent 55a657c commit b62e5c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

name: Deploy to Firebase Hosting
name: Development - Deploy to Firebase Hosting

# This workflow deploys the static-generated nextjs app to Firebase Hosting
# Triggered by push to the "dev" branch
Expand All @@ -21,6 +20,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: 'dev'
- name: Use NodeJS v16.14.2
uses: actions/setup-node@v3
with:
Expand All @@ -38,9 +39,10 @@ jobs:
cd client
npm run export
- name: Archive Development Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dev-app
include-hidden-files: true
path: |
client/out
client/firebase.json
Expand All @@ -53,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dev-app
- name: Deploy to Firebase
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Use NodeJS v16.14.2
uses: actions/setup-node@v3
with:
Expand All @@ -39,9 +41,10 @@ jobs:
- name: Disable Jekyll
run: touch client/out/.nojekyll
- name: Archive Development Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: main-out
include-hidden-files: true
path: client/out
retention-days: 3

Expand All @@ -51,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: main-out
- name: List files for publish
Expand Down

0 comments on commit b62e5c0

Please sign in to comment.