From 6d37a837e9dd151eb1329e520545dfdeff14663b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Sat, 22 Feb 2025 19:52:18 +0900 Subject: [PATCH 1/5] Create main.yml --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..395bd88 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Package Test + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v2.2.0 + with: + swift-version: "6" + + - name: Build💻 + run: swift build -v + + test: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v2.2.0 + with: + swift-version: "6" + + - name: Test🦉 + run: swift test -v + From d0b0135fdc9e59167444678bcb112b5128def2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:17:49 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=9A=A9=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EB=B3=80=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 395bd88..5cfcda5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,5 +38,5 @@ jobs: swift-version: "6" - name: Test🦉 - run: swift test -v + run: TEST_URL=${{secrets.TEST_URL}} PRODUCTION_URL=${{secrets.PRODUCTION_URL}} PORT_NUM=${{secrets.PORT_NUM}} swift test -v From e384a1fea081c0afaa5285b550d77b0a80591d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Sat, 22 Feb 2025 23:31:46 +0900 Subject: [PATCH 3/5] Create release.yml --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c98baf1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release Tag 🏷️ + +on: + push: + branches: + - main + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: 버전 정보 추출 + run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" + id: extract_version_name + + - name: Release 생성 + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + tag_name: ${{steps.extract_version_name.outputs.version}} + release_name: ${{steps.extract_version_name.outputs.version}} + From 0296e3f9f4a6b7a256f50570ef0c3261974d4629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:11:04 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=EB=A6=B4=EB=A6=AC=EC=A6=88=20=EB=B0=94?= =?UTF-8?q?=EB=94=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c98baf1..211d1be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: - build: + Release_Test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -23,4 +23,5 @@ jobs: with: tag_name: ${{steps.extract_version_name.outputs.version}} release_name: ${{steps.extract_version_name.outputs.version}} + body_name: ${{github.event.pull_request.body}} From 40334b3b278fc22d1697d711dafcb01c99f8e102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:52:51 +0900 Subject: [PATCH 5/5] Update Package.swift --- Package.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Package.swift b/Package.swift index dde0520..3cb557a 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,7 @@ import PackageDescription + let package = Package( name: "QappleRepository", platforms: [