GaganSingh5 is executed this action. #12
This file contains 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: deploy_on_push | |
run-name: ${{ github.actor }} is executed this action. | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build_deploy_gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Bun Environment | |
uses: oven-sh/setup-bun@v1.1.1 | |
- name: Install Dependencies | |
run: bun install | |
- name: Build Project | |
run: bun run build | |
- name: Deploy | |
run: | | |
git config --global user.name $user_name | |
git config --global user.email $user_email | |
git remote set-url origin https://${github_token}@github.com/${repository} | |
bun run deploy | |
env: | |
user_name: "github-actions[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" | |
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} | |
repository: ${{ github.repository }} |