fix Ed25519 parameter value to EdDSA (#4) #22
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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event.repository.fork == false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install python3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.x | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- name: Install Material for MkDocs | |
run: pip install mkdocs-material pillow cairosvg | |
- name: Build | |
run: mkdocs build --clean --config-file mkdocs.yaml -d site -v | |
- name: Prepare message | |
run: | | |
MKDOCS_VERSION=$(pip list --no-index --format=json | jq -r '.[] | select(.name=="mkdocs").version') | |
MATERIAL_VERSION=$(pip list --no-index --format=json | jq -r '.[] | select(.name=="mkdocs-material").version') | |
SHA_SHORT=$(git rev-parse --short HEAD) | |
MESSAGE="Deployed ${SHA_SHORT} with MkDocs version ${MKDOCS_VERSION} (${MATERIAL_VERSION})" | |
echo "MESSAGE=${MESSAGE}" >> $GITHUB_ENV | |
- name: Example step where the github-actions bot makes a git commit | |
run: | | |
git config --global user.name github-actions[bot] | |
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- name: Deploy | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: site/ | |
destination-github-username: "golang-jwt" | |
destination-repository-name: "jwt" | |
user-name: "github-actions[bot]" | |
user-email: "41898282+github-actions[bot]@users.noreply.github.com" | |
commit-message: ${{ env.MESSAGE }} | |
target-branch: gh-pages |