Skip to content

Commit

Permalink
[Actions] Update Artifact actions v4 (Samsung#6576)
Browse files Browse the repository at this point in the history
- Artifact actions v3 will be closing down by Jan 30, 2025
- https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md

Co-authored-by: shmin <[email protected]>
  • Loading branch information
sung-su and shyunMin authored Jan 15, 2025
1 parent ed65361 commit 91807d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ jobs:
-- print --format=json --include-hidden \
-o Artifacts/api.json Artifacts/bin/public/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: reports
if-no-files-found: ignore
path: Artifacts/*.json
overwrite : true

check-api:
needs: [build]
Expand All @@ -73,10 +74,11 @@ jobs:
dotnet-version: 3.1.x

- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: reports
path: Artifacts
overwrite: true

- name: Checkout to base spec
uses: actions/checkout@v3
Expand Down Expand Up @@ -109,7 +111,8 @@ jobs:
base-file: Artifacts/base-api.json
output: Artifacts/api-comp.json

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: reports
path: Artifacts/api-comp.json
overwrite: true
6 changes: 4 additions & 2 deletions .github/workflows/deploy-documents-for-tizen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,21 @@ jobs:
cp .gitattributes _site/
tar cfz site.tar.gz _site/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: documents
path: site.tar.gz
overwrite: true

deploy:
needs: [build]
runs-on: ubuntu-20.04

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: documents
overwrite: true

- name: Extract Artifacts
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,21 @@ jobs:
- name: Archive Artifacts
run: |
tar cfz site.tar.gz _site/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: documents
path: site.tar.gz
overwrite: true

deploy:
needs: [build]
runs-on: ubuntu-20.04

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: documents
overwrite: true

- name: Extract Artifacts
run: |
Expand Down

0 comments on commit 91807d3

Please sign in to comment.