mirror of
https://github.com/djkotowski/personal-website.git
synced 2026-09-12 13:30:40 -05:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0be5deab6 |
@@ -1,18 +1,22 @@
|
|||||||
name: deploy
|
name: deploy
|
||||||
run-name: "${{ github.actor }} is deploying ${{ github.sha }}"
|
run-name: "${{ github.actor }} is deploying ${{ github.event.workflow_run.head_sha }}"
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
branches:
|
workflows: ['ci-test']
|
||||||
- 'main'
|
types: [completed]
|
||||||
|
branches: ['main']
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pages
|
group: pages
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: github.event.workflow_run.conclusion == 'success'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.workflow_run.head_sha }}
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v5
|
uses: pnpm/action-setup@v5
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
@@ -41,6 +45,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.workflow_run.head_sha }}
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v5
|
uses: actions/deploy-pages@v5
|
||||||
@@ -48,6 +54,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
tag="deploy-$(date +%Y-%m-%d)-${GITHUB_SHA::7}"
|
sha="${{ github.event.workflow_run.head_sha }}"
|
||||||
git tag "$tag"
|
tag="deploy-$(date +%Y-%m-%d)-${sha::7}"
|
||||||
|
git tag "$tag" "$sha"
|
||||||
git push origin "$tag"
|
git push origin "$tag"
|
||||||
|
|||||||
Reference in New Issue
Block a user