Skip to content

Commit

Permalink
Replace/test deprecated CI actions [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay committed Apr 4, 2024
1 parent 04aa740 commit 4027d1d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.ROBO_ACTIONS }}

- name: Check Tag Name
id: check_tag_name
if: ${{ github.event.inputs.tag_name != '' }}
uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.event.inputs.tag_name }}
regex: '^\d+\.\d+\.\d+$'
run: echo "valid=yes" >> "$GITHUB_OUTPUT"
# uses: actions-ecosystem/action-regex-match@v2
# with:
# text: ${{ github.event.inputs.tag_name }}
# regex: '^\d+\.\d+\.\d+$'


- name: GPG Import
if: ${{ steps.check_tag_name.outputs.match != '' }}
uses: crazy-max/ghaction-import-gpg@v5
if: ${{ steps.check_tag_name.outputs.valid == 'yes' }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.NEW_SIGNING_STUFF }}
passphrase: ${{ secrets.SIGNING_BONUS_PHRASE }}
Expand All @@ -38,7 +39,7 @@ jobs:

- name: Sign and Push Tag
id: create_archive
if: ${{ steps.check_tag_name.outputs.match != '' }}
if: ${{ steps.check_tag_name.outputs.valid == 'yes' }}
run: |
git config tar.tar.gz.command 'gzip -cn'
git tag -s ${{ github.event.inputs.tag_name }} -m 'Tag for ${{ github.event.inputs.tag_name }} release'
Expand All @@ -54,7 +55,7 @@ jobs:
gpg --detach-sign --pinentry-mode loopback --passphrase ${{ secrets.SIGNING_BONUS_PHRASE }} ${FNAME}.zip
- name: Create Release
if: ${{ steps.check_tag_name.outputs.match != '' }}
if: ${{ steps.check_tag_name.outputs.valid == 'yes' }}
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.ROBO_ACTIONS }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache Custom Qt
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/${{env.QT}}
key: ${{ runner.os }}-qtdeps-${{hashFiles('**/reset-mac-caches.txt')}}
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
tar -cJf PageEdit.tar.xz PageEdit.app
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: "contains(github.event.head_commit.message, '[deploy]')"
with:
name: pageedit-installer
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/make_blog_post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
run: echo "TAGNAME=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: master
path: main

- name: Checkout website
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.ROBO_ACTIONS }}
repository: sigil-ebook/sigil-ebook.github.io
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Commit post to blog
if: "!github.event.release.prerelease"
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: website
commit_user_name: My GitHub Actions Bot
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11.3

- name: Cache Custom Qt
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{runner.workspace}}\${{env.QT}}
key: ${{ runner.os }}-qtdeps-${{hashFiles('**/reset-win-caches.txt')}}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=14.38
ninja -j2 deployinstaller
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: "contains(github.event.head_commit.message, '[deploy]')"
with:
name: pageedit-installer
Expand Down

0 comments on commit 4027d1d

Please sign in to comment.