-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.3 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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