GeezerVison is showing github.com — Create ts_docs.yml · dev-language/TypeScript_prac@b8d7f81
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +30Lines changed: 30 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: git push into another repo to deploy to vercel |
| 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 | + - name: Install mustache (to update the date) |
| 14 | + run: apk add ruby && gem install mustache |
| 15 | + - name: creates output |
| 16 | + run: sh ./build.sh |
| 17 | + - name: Pushes to another repository |
| 18 | + id: push_directory |
| 19 | + uses: cpina/github-action-push-to-another-repository@main |
| 20 | + env: |
| 21 | + API_TOKEN_GITHUB: ${{ secrets.DOCS_SECRET_TOKEN }} |
| 22 | + with: |
| 23 | + source-directory: 'output' |
| 24 | + destination-github-username: Seogun95 |
| 25 | + destination-repository-name: TypeScript_docs |
| 26 | + user-email: ${{ secrets.DOCS_SECRET_EMAIL }} |
| 27 | + commit-message: ${{ github.event.commits[0].message }} |
| 28 | + target-branch: main |
| 29 | + - name: Test get variable exported by push-to-another-repository |
| 30 | + run: echo $DESTINATION_CLONED_DIRECTORY |