forked from UPB-PMRust/website
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 854 Bytes
/
Copy pathpages.yml
File metadata and controls
32 lines (26 loc) · 854 Bytes
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
# .github/workflows/manual-push-to-gitlab.yml
name: Deploy to Pages
on:
workflow_dispatch:
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Important: get full history for pushing
ref: gh-pages
- name: Set up Git identity
run: |
git config --global user.email "pages@wyliodrin.com"
git config --global user.name "Pages Bot"
- name: Add GitLab remote
run: |
git remote add gitlab https://$GITLAB_USER:$GITLAB_TOKEN@gitlab.cs.pub.ro/PMRust/pmrust.pages.upb.ro.git
env:
GITLAB_USER: ${{ secrets.GITLAB_USER }}
GITLAB_TOKEN: ${{ secrets.GITLAB_ACCESS_TOKEN }}
- name: Push to GitLab
run: |
git push gitlab gh-pages --force