diff --git a/.github/workflows/artifact.yml b/.github/workflows/artifact.yml deleted file mode 100644 index 2377d9d..0000000 --- a/.github/workflows/artifact.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Build Artifact - -on: - push: - branches: 'master' - -env: - SOLUTION_NAME: Cammy - -jobs: - build: - runs-on: [windows-2022] - - steps: - - uses: actions/checkout@v2 - - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.1 - - - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.5 - - - name: Restore NuGet Packages - run: nuget restore ${{ env.SOLUTION_NAME }}.sln - - - name: Download Dalamud - run: | - Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip - Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\" - - - name: Build - run: msbuild ${{ env.SOLUTION_NAME }}.sln /p:Configuration=Debug - - - name: Upload Build Artifact - uses: actions/upload-artifact@v2.2.1 - with: - path: ./bin/Debug/* diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 0000000..cc3870f --- /dev/null +++ b/.github/workflows/create_release.yml @@ -0,0 +1,20 @@ +name: Create Release and Update Repository + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + uses: UnknownX7/DalamudPluginRepo/.github/workflows/reusable_create_release.yml@master + with: + internal_name: Cammy + solution_name: Cammy + build_configuration: Release + personal_plugin_repo: UnknownX7/DalamudPluginRepo + personal_plugin_repo_branch: master + secrets: inherit diff --git a/.github/workflows/upload_plugin_repo.yml b/.github/workflows/upload_plugin_repo.yml deleted file mode 100644 index 4c644a0..0000000 --- a/.github/workflows/upload_plugin_repo.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Upload to Plugin Repository - -on: - push: - tags: - - '*' - -env: - SOLUTION_NAME: Cammy - INTERNAL_NAME: Cammy - RELEASE_DIR: ./bin/Release/Cammy - PERSONAL_PLUGIN_REPO: UnknownX7/DalamudPluginRepo - BRANCH: master - -jobs: - build: - runs-on: [windows-2022] - - steps: - - uses: actions/checkout@v2 - - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.1 - - - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.5 - - - name: Restore NuGet Packages - run: nuget restore ${{ env.SOLUTION_NAME }}.sln - - - name: Download Dalamud - run: | - Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip - Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\" - - - name: Build - run: msbuild ${{ env.SOLUTION_NAME }}.sln /p:Configuration=Release - - - name: Upload Build Artifact - uses: actions/upload-artifact@v2.2.1 - with: - path: ${{ env.RELEASE_DIR }}/* - - deploy: - needs: build - runs-on: [ubuntu-latest] - - steps: - - uses: actions/checkout@v2 - with: - repository: ${{ env.PERSONAL_PLUGIN_REPO }} - token: ${{ secrets.PAT }} - ref: ${{ env.BRANCH }} - - - uses: actions/download-artifact@v2 - with: - name: artifact - path: plugins/${{ env.INTERNAL_NAME }} - - - uses: EndBug/add-and-commit@v7 - with: - add: --all - author_name: GitHub Action - author_email: github-actions[bot]@users.noreply.github.com - branch: ${{ env.BRANCH }} - message: Update ${{ env.INTERNAL_NAME }}