remove cache #1842
Workflow file for this run
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
name: Build and Deploy Starknet Website | |
on: | |
push: | |
jobs: | |
build: | |
name: Build and Deploy | |
environment: | |
name: Starknet Website ${{ github.ref_name }} | |
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v4 | |
with: | |
slug-maxlength: 28 | |
- name: Build project | |
run: yarn workspace @starknet-io/website build | |
- name: Publish | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: hardconfig | |
directory: dist/client | |
workingDirectory: workspaces/website | |
wranglerVersion: '3' | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref_name == 'production' && 'main' || github.ref_name }} | |