diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6323de..be3caef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,13 @@ permissions: jobs: build-and-release: + if: ${{ github.event.repository.fork == false }} name: ๐Ÿš€ Build and Release .saver runs-on: macos-14 outputs: build_number: ${{ steps.extract_build_number.outputs.build_number }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 1 @@ -25,7 +26,7 @@ jobs: xcode-version: latest - name: ๐Ÿ’พ Cache DerivedData - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/Library/Developer/Xcode/DerivedData @@ -64,7 +65,7 @@ jobs: git push -f origin ${{ steps.extract_build_number.outputs.build_number }} - name: โฌ†๏ธ Upload .saver to Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: files: build/Fruit.saver.tar.gz tag_name: ${{ steps.extract_build_number.outputs.build_number }} @@ -74,18 +75,19 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} bump-homebrew-cask: + if: ${{ github.event.repository.fork == false }} name: ๐Ÿบ Bump Homebrew Cask runs-on: ubuntu-latest needs: build-and-release steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 1 - name: ๐Ÿบ Bump Homebrew Cask - uses: kitschpatrol/github-action-homebrew-bump-cask@v3.8.6 + uses: kitschpatrol/github-action-homebrew-bump-cask@v4 with: tap: Corkscrews/homebrew-cask cask: fruit-screensaver tag: ${{ needs.build-and-release.outputs.build_number }} token: ${{ secrets.HOMEBREW_TOKEN }} - no-fork: true + no-fork: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bd34193..1374be4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,37 +12,38 @@ jobs: image: ghcr.io/realm/swiftlint:latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 1 + - uses: actions/checkout@v6 + with: + fetch-depth: 1 - - name: ๐Ÿงน SwiftLint - run: swiftlint --reporter github-actions-logging --strict + - name: ๐Ÿงน SwiftLint + run: swiftlint --reporter github-actions-logging --strict build: name: ๐Ÿ—๏ธ Build runs-on: macos-14 steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - - name: ๐Ÿ› ๏ธ Set up Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest - - - name: ๐Ÿ’พ Cache DerivedData - uses: actions/cache@v4 - with: - path: ~/Library/Developer/Xcode/DerivedData - key: ${{ runner.os }}-xcode-deriveddata-${{ hashFiles('**/*.pbxproj', '**/*.swift') }} - restore-keys: | - ${{ runner.os }}-xcode-deriveddata- - - - name: ๐Ÿ—๏ธ Build Fruit.saver - run: xcodebuild -scheme Fruit -configuration Debug build | tail -20 - - - name: ๐Ÿ—๏ธ Build FruitShop - run: xcodebuild -scheme FruitShop -configuration Debug build | tail -20 + - uses: actions/checkout@v6 + with: + fetch-depth: 1 + + - name: ๐Ÿ› ๏ธ Set up Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest + + - name: ๐Ÿ’พ Cache DerivedData + uses: actions/cache@v5 + with: + path: ~/Library/Developer/Xcode/DerivedData + key: ${{ runner.os }}-xcode-deriveddata-${{ hashFiles('**/*.pbxproj', + '**/*.swift') }} + restore-keys: | + ${{ runner.os }}-xcode-deriveddata- + + - name: ๐Ÿ—๏ธ Build Fruit.saver + run: xcodebuild -scheme Fruit -configuration Debug build | tail -20 + + - name: ๐Ÿ—๏ธ Build FruitShop + run: xcodebuild -scheme FruitShop -configuration Debug build | tail -20