Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
ci: change environment variables scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Dec 11, 2023
1 parent 513d5c1 commit bed9fd8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docs-cf-pages-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
WRS_INSTANCE: docs/ucwa
WRS_ARTIFACT: webHelpUCWA2-all.zip
WRS_DOCKER_VERSION: 232.10275

jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
env:
WRS_INSTANCE: docs/ucwa
WRS_ARTIFACT: webHelpUCWA2-all.zip
WRS_DOCKER_VERSION: 232.10275

steps:
- name: Checkout
Expand Down Expand Up @@ -70,6 +69,8 @@ jobs:
name: Publish to Cloudflare Pages
runs-on: ubuntu-latest
needs: build
env:
CLOUDFLARE_PAGES_PROJECT_NAME: 'docs-svfmc'
environment:
name: 'Publish Documentation'
url: ${{ steps.deploy-to-cloudflare-pages.outputs.url }}
Expand All @@ -93,6 +94,6 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
projectName: ${{ env.CLOUDFLARE_PAGES_PROJECT_NAME }}
directory: built_docs
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bed9fd8

Please sign in to comment.