Skip to content

Commit

Permalink
Merge pull request #5 from tinysec/fix_doc
Browse files Browse the repository at this point in the history
ci: limit push to master
  • Loading branch information
tinysec committed Jun 10, 2023
2 parents 3e93551 + 4fbf8b2 commit 6f51478
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ jobs:
token: ${{ secrets.GIT_TOKEN }}

- name: Get DateTime
if: github.ref_type == 'tag' || github.ref == 'refs/heads/master'
id: datetime
run: |
$datetime = Get-Date -Format "yyyyMMdd-HHmmss"
echo "datetime=$datetime" >> $env:GITHUB_OUTPUT
- name: Get Repository
if: github.ref_type == 'tag' || github.ref == 'refs/heads/master'
id: repository
run: |
$repository = Split-Path -Leaf $env:GITHUB_REPOSITORY
Expand All @@ -42,7 +40,7 @@ jobs:
cmake --build x64 --config Release
- name: Create ZIP
if: github.ref_type == 'tag' || github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: compress
run: |
$datetime = "${{steps.datetime.outputs.datetime}}"
Expand All @@ -51,7 +49,7 @@ jobs:
Compress-Archive -Path "build\x64\Release\*.dll","build\x64\Release\*.pdb" -DestinationPath "${{ steps.repository.outputs.repository }}-${{ steps.datetime.outputs.datetime }}-x64.zip"
- name: Create Release
if: github.ref_type == 'tag' || github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 6f51478

Please sign in to comment.