added logos for alheckz, amano, and apothecary (#493) #2691
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: Website build | |
concurrency: | |
group: ${{ github.ref }} | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.REPO_SCOPE }} | |
- uses: actions/checkout@v4 | |
with: | |
repository: keycap-archivist/website-bin | |
path: bin-repo | |
token: ${{ secrets.REPO_SCOPE }} | |
- id: nodeversion | |
run: echo "NODE=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
- name: Use Node.js ${{steps.nodeversion.outputs.NODE}} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.nodeversion.outputs.NODE }} | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8 | |
run_install: true | |
- name: lint | |
run: pnpm lint | |
- name: Package website | |
run: pnpm package | |
- name: push Website | |
env: | |
DISCORD_HOOK: ${{ secrets.DISCORD_HOOK }} | |
run: | | |
cd bin-repo | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git config --global user.name 'Keycap Archivist Bot' | |
git checkout --orphan temp | |
rm -rf ./* | |
ls -al ../ | |
cp -r ../public/* ./ | |
mkdir -p ./.github/workflows | |
cp -ar ../build/push.yml ./.github/workflows/push.yml | |
git add . | |
git commit -m "update-website" || true | |
git branch -D master | |
git branch -m master | |
git push -f origin master || true | |
cd .. | |
node scripts/discord-update.js |