Merge pull request #80 from pinefile/renovate/actions-checkout-5.x #217
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Install and build" | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- name: Set up node. | |
uses: actions/[email protected] | |
with: | |
node-version: 17.x | |
- name: Install and build. | |
run: | | |
yarn install | |
yarn build | |
env: | |
CI: true | |
- name: Deploy! | |
uses: demurgos/ga-deploy-git@v1 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
accessToken: ${{ secrets.PUSH_TOKEN }} | |
commitEmail: "[email protected]" | |
commitUser: "Frozzbot" | |
destBranch: "main" | |
srcDir: "build" |