diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 40c183f..c4b354b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,15 +16,14 @@ jobs: runs-on: macos-15 permissions: write-all steps: + - uses: actions/checkout@v4 - name: Create achrive - run: | - make achive - + run: make archive - name: Upload Release uses: actions/upload-artifact@v4 with: name: prefire.tar.gz - path: "~/prefire.tar.gz" + path: prefire.tar.gz update-homebrew: needs: release diff --git a/Makefile b/Makefile index b0ca70b..71d1f41 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ update: cd PrefireExecutable/Sources/prefire/Commands/Version/; sed -i '' -e '8 s/.*/ static let value: String = "$(version)"/g' Version.swift archive: - cp /Users/m.grishutin/Documents/Projects/Prefire/Templates/PreviewTests.stencil Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/ - cp /Users/m.grishutin/Documents/Projects/Prefire/Templates/PreviewModels.stencil Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/ + cp Templates/PreviewTests.stencil Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/ + cp Templates/PreviewModels.stencil Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/ tar -czf prefire.tar.gz -C Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/ prefire PreviewTests.stencil PreviewModels.stencil rm Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/PreviewTests.stencil rm Binaries/PrefireBinary.artifactbundle/prefire-${CUR_VERSION}-macos/bin/PreviewModels.stencil