Skip to content

Commit 648b7bc

Browse files
authored
Update and rename main.yml to deploy.yml
1 parent e82fc1f commit 648b7bc

File tree

2 files changed

+35
-30
lines changed

2 files changed

+35
-30
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: pandoc/latex
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install mustache (to update the date)
15+
run: apk add ruby && gem install mustache
16+
17+
- name: creates output
18+
run: sh ./build.sh
19+
20+
- name: Pushes to another repository
21+
id: push_directory
22+
uses: cpina/github-action-push-to-another-repository@main
23+
env:
24+
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
25+
with:
26+
source-directory: 'output'
27+
destination-github-username: TeamDMU
28+
destination-repository-name: DMU-Web
29+
user-email: ${{ secrets.EMAIL }}
30+
commit-message: ${{ github.event.commits[0].message }}
31+
target-branch: main
32+
33+
- name: Test get variable exported by push-to-another-repository
34+
run: echo $DESTINATION_CLONED_DIRECTORY
35+

.github/workflows/main.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)