Skip to content

Commit

Permalink
build: remove CD in favor of DIP17
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Jan 17, 2023
1 parent 733f7f1 commit 45bc701
Showing 1 changed file with 49 additions and 53 deletions.
102 changes: 49 additions & 53 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
SOLUTION_NAME: AutoSweep
ZIP_PATH: bin\Release\out\autoSweep
ZIP_PATH: bin\Release\autoSweep

jobs:
build:
Expand All @@ -25,10 +25,6 @@ jobs:
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
- name: Setup Secrets
run: |
echo '${{ secrets.SECRETS_CS }}' > Paissa/Secrets.cs
- name: Build
run: |
dotnet restore
Expand Down Expand Up @@ -76,52 +72,52 @@ jobs:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: zhudotexe/FFXIV_DalamudPlugins
event-type: new-release

release-dalamudofficial:
# on release publish only
if: github.event_name == 'release'
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Find Previous Release
id: findtag
run: |
echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | sed -n 2p)
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ReleaseZip
path: out

- name: Checkout DalamudPlugins
uses: actions/checkout@v3
with:
repository: 'goatcorp/DalamudPlugins'
path: DalamudPlugins

- name: Copy dist files
run: |
cp out/latest.zip DalamudPlugins/plugins/autoSweep/latest.zip
cp out/autoSweep.json DalamudPlugins/plugins/autoSweep/autoSweep.json
cp -r out/images DalamudPlugins/plugins/autoSweep
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: DalamudPlugins
commit-message: update PaissaHouse to ${{ github.event.release.tag_name }}
delete-branch: true
push-to-fork: zhudotexe/DalamudPlugins
title: Update PaissaHouse to ${{ github.event.release.name }}
body: |
${{ github.event.release.body }}
*This PR was automatically generated by the PaissaHouse build system ([link to run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}); [diff since last release](https://github.com/${{ github.repository }}/compare/${{ steps.findtag.outputs.previous_release }}...${{ github.event.release.tag_name }})).*
# release-dalamudofficial:
# # on release publish only
# if: github.event_name == 'release'
# needs: build
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
#
# - name: Find Previous Release
# id: findtag
# run: |
# echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | sed -n 2p)
#
# - name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: ReleaseZip
# path: out
#
# - name: Checkout DalamudPlugins
# uses: actions/checkout@v3
# with:
# repository: 'goatcorp/DalamudPlugins'
# path: DalamudPlugins
#
# - name: Copy dist files
# run: |
# cp out/latest.zip DalamudPlugins/plugins/autoSweep/latest.zip
# cp out/autoSweep.json DalamudPlugins/plugins/autoSweep/autoSweep.json
# cp -r out/images DalamudPlugins/plugins/autoSweep
#
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v4
# with:
# token: ${{ secrets.REPO_ACCESS_TOKEN }}
# path: DalamudPlugins
# commit-message: update PaissaHouse to ${{ github.event.release.tag_name }}
# delete-branch: true
# push-to-fork: zhudotexe/DalamudPlugins
# title: Update PaissaHouse to ${{ github.event.release.name }}
# body: |
# ${{ github.event.release.body }}
#
# *This PR was automatically generated by the PaissaHouse build system ([link to run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}); [diff since last release](https://github.com/${{ github.repository }}/compare/${{ steps.findtag.outputs.previous_release }}...${{ github.event.release.tag_name }})).*

0 comments on commit 45bc701

Please sign in to comment.