Skip to content

Commit

Permalink
misc: update github action macos version
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Jun 10, 2024
1 parent 09d30ee commit 118bb3d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build ipa
runs-on: macos-13
runs-on: macos-14

steps:
- name: Checkout
Expand All @@ -23,26 +23,26 @@ jobs:
bundle install -j 4
bundle exec fastlane build_unsign_ipa
- name: List, filter and delete artifacts
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: actions/github-script@v6
id: artifact
with:
script: |
const { owner, repo } = context.issue
# - name: List, filter and delete artifacts
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# uses: actions/github-script@v6
# id: artifact
# with:
# script: |
# const { owner, repo } = context.issue

const res = await github.rest.actions.listArtifactsForRepo({
owner,
repo,
})
# const res = await github.rest.actions.listArtifactsForRepo({
# owner,
# repo,
# })

res.data.artifacts
.forEach(({ id }) => { github.rest.actions.deleteArtifact({ owner, repo, artifact_id: id, }) })
# res.data.artifacts
# .forEach(({ id }) => { github.rest.actions.deleteArtifact({ owner, repo, artifact_id: id, }) })

- name: Upload latest artifact
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: actions/upload-artifact@v3
with:
name: main-unsigned.ipa
path: BilbiliAtvDemo.ipa
retention-days: 30
retention-days: 60

0 comments on commit 118bb3d

Please sign in to comment.