-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (27 loc) · 924 Bytes
/
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
# Simple workflow for deploying static content to GitHub Pages
name: Deploy Site
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: write-all
jobs:
# Single deploy job since we're just deploying
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'site'
destination-github-username: 'Afig-Asso'
destination-repository-name: 'Afig-Asso.github.io'
user-email: association.afig@gmail.com
user-name: 'Afig-Asso'
target-branch: main
target-directory: 'entreprises'