Skip to content

Commit

Permalink
Upload to artifacs and delet from artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-chernysh committed Oct 9, 2024
1 parent b0ff327 commit 2d5cc3e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/clean-up-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Clean up artifacts

on:
# Enables this workflow to be called from other workflows
workflow_call:

jobs:
create-release-notes:
runs-on: ubuntu-latest

steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: |
bundles
release_notes
google_service
failOnError: false

9 changes: 8 additions & 1 deletion .github/workflows/create-service-json.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release Notes
name: Create Google Service JSON

on:
# Enables this workflow to be called from other workflows
Expand All @@ -25,3 +25,10 @@ jobs:
exit 1
fi
continue-on-error: false

- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: google_service
path: ${{ github.workspace }}/app/google-services.json

6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ jobs:
uses: ./.github/workflows/deploy-to-open-track.yml
needs: build-signed-bundle
secrets: inherit

# It allow to remove artifacts created to use between workflows (google service json, bundles, etc)
remove-artifacts:
uses: ./.github/workflows/clean-up-artifacts.yml
needs: deploy-to-production-track
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ jobs:
uses: ./.github/workflows/run-tests.yml
needs: create-service-json
secrets: inherit

# It allow to remove artifacts created to use between workflows (google service json, bundles, etc)
remove-artifacts:
uses: ./.github/workflows/clean-up-artifacts.yml
needs: run-tests
secrets: inherit

0 comments on commit 2d5cc3e

Please sign in to comment.