Skip to content

Commit

Permalink
ci: 对发版的事件,在deployment和vagrant项目中创建一个VERSION文件用于强制创建一个新的commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Mar 6, 2023
1 parent 5deada9 commit 9e36fcd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/side-projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Create version file for tag commit
if: github.ref_type == 'tag'
uses: finnp/create-file-action@master
env:
FILE_NAME: "./deploy/local/VERSION"
FILE_DATA: "${{ github.ref_name }}"

- name: Pushes to scow-deployment repo
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand All @@ -33,6 +40,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Create version file for tag commit
if: github.ref_type == 'tag'
uses: finnp/create-file-action@master
env:
FILE_NAME: "./deploy/vagrant/VERSION"
FILE_DATA: "${{ github.ref_name }}"

- name: Pushes to scow-vagrant repo
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 9e36fcd

Please sign in to comment.