Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment #1

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish
on:
push:
tags:
- 'v*.*.*.*'
jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: ${{ github.workspace }}/Dalamud/
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Get Environment Variables
run: |
tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
echo "tag=$tag" >> $GITHUB_ENV

if [[ "$tag" == *"-test" ]]; then
branch="testing"
tag=$(echo $tag | sed 's/-test//')
else
branch="latest"
fi

echo "branch=$branch" >> $GITHUB_ENV

- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}

- name: Restore Nuget Packages
run: dotnet restore RotationSolver/RotationSolver.csproj

- name: Build Plugin
run: dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }}

- name: Publish Plugin
uses: softprops/action-gh-release@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: RotationSolverReborn ${{ env.tag }}
tag: ${{ env.tag }}
draft: false
make_latest: ${{ env.branch == 'latest' }}
prerelease: ${{ env.branch == 'testing' }}



16 changes: 0 additions & 16 deletions .github/workflows/release-please.yml

This file was deleted.