Merge pull request #932 from SwedbankPay/dependabot/npm_and_yarn/styl… #735
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: | |
variables: | |
runs-on: ubuntu-latest | |
outputs: | |
branch: ${{ steps.variables.outputs.branch }} | |
version: ${{ steps.variables.outputs.version }} | |
repository_url: ${{ steps.variables.outputs.repository_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x.x' | |
- id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Generate variables | |
id: variables | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: .github/scripts/variables.sh ${{ steps.gitversion.outputs.legacySemVerPadded }} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: variables | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy to GitHub Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_ACTOR: payex-dev | |
GITHUB_ACTOR_EMAIL: [email protected] | |
GITHUB_REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
run: | | |
docker-compose run \ | |
-e GITHUB_REPOSITORY_URL=${{ needs.variables.outputs.repository_url }} \ | |
jekyll deploy \ | |
--env=production |