aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 683f9ae..62e11ed 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,6 +22,15 @@ jobs:
cache: 'npm'
- name: Install Node.js packages
run: npm ci
+ - name: Get current date
+ id: date
+ run: echo "::set-output name=date::$(date +'%s')"
+ - name: Modify version number
+ uses: mingjun97/file-regex-replace@v1
+ with:
+ regex: 'version: "[0-9]*",'
+ replacement: 'version: "${{ steps.date.outputs.date }}",'
+ include: 'gatsby-config\.ts'
- name: Clean Gatsby cache
run: npm run clean
- name: Run Gatsby Build