-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #577 from ali-hosseini-deriv/ako/add-github-actions
ci: use staging cf workflow
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,15 +26,15 @@ jobs: | |
target: translations | ||
- uses: "./.github/actions/versioning" | ||
with: | ||
target_branch: production | ||
target_branch: staging | ||
- name: "Run Tests" | ||
run: npm run test | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
publish_cloudflare_production: | ||
name: Publish to Cloudflare Pages Production | ||
publish_cloudflare_staging: | ||
name: Publish to Cloudflare Pages Staging | ||
runs-on: ubuntu-latest | ||
needs: [build_and_test] | ||
steps: | ||
|
@@ -47,7 +47,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
path: dist | ||
- uses: "./.github/actions/publish_to_pages_production" | ||
- uses: "./.github/actions/publish_to_pages_staging" | ||
with: | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |