Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 25, 2023
1 parent d9f23cf commit 997f674
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build and Deploy
environment:
name: Starknet Website ${{ github.ref_name }}
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
if [ "${{ env.GITHUB_REF_SLUG_URL }}" = "production" ]; then
echo "VITE_SITE_URL=https://www.starknet.io" >> $GITHUB_ENV
else
echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev" >> $GITHUB_ENV
echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev" >> $GITHUB_ENV
fi
- name: Build project
Expand All @@ -64,17 +64,16 @@ jobs:
VITE_ALGOLIA_INDEX: ${{ github.ref_name == 'production' && 'production' || 'dev' }}
VITE_ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
VITE_ALGOLIA_SEARCH_API_KEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
VITE_CF_STREAM_URL: ${{ secrets.CF_STREAM_URL }}
VITE_CF_STREAM_URL: ${{ secrets.NEW_CF_STREAM_URL }}

- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-website
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-websites
directory: dist/client
workingDirectory: workspaces/website
wranglerVersion: '3'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name == 'production' && 'main' || github.ref_name }}

0 comments on commit 997f674

Please sign in to comment.