-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix publishing to github pages (#710)
* Fix publishing to github pages * Test * Test * Test * Tweak * a * Tweak * Tweak * Tweak * Tweak * Tweak * Tweak * Final
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'SSH' | ||
description: 'Setup ssh key.' | ||
|
||
branding: | ||
icon: key | ||
color: green | ||
|
||
inputs: | ||
ssh-key: | ||
description: 'SSH key' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Add SSH key | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
mkdir -p /home/runner/.ssh | ||
ssh-keyscan github.com >> /home/runner/.ssh/known_hosts | ||
echo "${{ inputs.ssh-key }}" > /home/runner/.ssh/github_actions | ||
chmod 600 /home/runner/.ssh/github_actions | ||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | ||
ssh-add /home/runner/.ssh/github_actions | ||
shell: bash |
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 |
---|---|---|
|
@@ -60,3 +60,5 @@ jobs: | |
run: yarn install | ||
- name: Check changesets | ||
run: yarn changeset status --since origin/main | ||
|
||
|
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 |
---|---|---|
|
@@ -16,11 +16,11 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.GH_DEPLOY_KEY }} | ||
- name: Configure Git | ||
run: | | ||
git remote set-url origin ssh://[email protected]/${{ github.repository }} | ||
git clone --depth 1 ssh://[email protected]/${{ github.repository }} abc | ||
git clone --depth 1 [email protected]/${{ github.repository }} xyz | ||
persist-credentials: false | ||
- name: Setup SSH | ||
uses: ./.github/actions/ssh | ||
with: | ||
ssh-key: ${{ secrets.GH_DEPLOY_KEY }} | ||
- name: Setup Anchor | ||
uses: ./.github/actions/anchor | ||
- name: Install dependencies | ||
|
@@ -36,6 +36,7 @@ jobs: | |
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }} | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
- name: Tag Release | ||
run: yarn changeset tag | ||
- name: Push Changes | ||
|