Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NostraThomas99 committed Mar 28, 2024
1 parent 3509103 commit 0c19127
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
jobs:
Build:
runs-on: windows-latest
env:
DALAMUD_HOME: ${{ github.workspace }}/Dalamud/
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -16,17 +14,18 @@ jobs:

- name: Get Environment Variables
run: |
tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
echo "tag=$tag" >> $GITHUB_ENV
$tag = ${{ github.ref }} -replace 'refs/tags/v', ''
if [[ "$tag" == *"-test" ]]; then
branch="testing"
tag=$(echo $tag | sed 's/-test//')
else
branch="latest"
fi
"tag=$tag" | Out-File -Append -FilePath $Env:GITHUB_ENV
echo "branch=$branch" >> $GITHUB_ENV
if ($tag -match "-test$") {
$branch = "testing"
$tag = $tag -replace '-test$', ''
} else {
$branch = "latest"
}
"branch=$branch" | Out-File -Append -FilePath $Env:GITHUB_ENV
- name: Set up .NET
uses: actions/setup-dotnet@v1
Expand Down

0 comments on commit 0c19127

Please sign in to comment.