ci: push to prod
This commit is contained in:
@ -28,4 +28,39 @@ jobs:
|
||||
name: trevstack
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- run: nix flake check
|
||||
- run: nix flake check --accept-flake-config
|
||||
|
||||
push:
|
||||
name: push
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: "0"
|
||||
|
||||
# https://github.com/actions/checkout/issues/13
|
||||
- name: Push to Production
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git push origin main:production
|
||||
|
||||
update:
|
||||
name: update
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ contains(github.event.head_commit.message, 'Merge pull request') }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: "0"
|
||||
|
||||
# https://github.com/actions/checkout/issues/13
|
||||
- name: Push to Production
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git push origin main:production
|
||||
|
37
.github/workflows/check.yaml
vendored
37
.github/workflows/check.yaml
vendored
@ -28,4 +28,39 @@ jobs:
|
||||
name: trevstack
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- run: nix flake check
|
||||
- run: nix flake check --accept-flake-config
|
||||
|
||||
push:
|
||||
name: push
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: "0"
|
||||
|
||||
# https://github.com/actions/checkout/issues/13
|
||||
- name: Push to Production
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git push origin main:production
|
||||
|
||||
update:
|
||||
name: update
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ contains(github.event.head_commit.message, 'Merge pull request') }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: "0"
|
||||
|
||||
# https://github.com/actions/checkout/issues/13
|
||||
- name: Push to Production
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git push origin main:production
|
||||
|
Reference in New Issue
Block a user