Skip to content

Commit

Permalink
add branch and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
irkode committed Aug 20, 2024
1 parent bfd42eb commit 28d8b4a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ jobs:
[void](Test-Path .\assets -PathType Container -ErrorAction Stop)
Expand-Archive -LiteralPath $BulmaRelease.archive -DestinationPath .\assets
if (Test-Path .\assets\__MACOSX) { Remove-Item .\assets\__MACOSX -ErrorAction SilentlyContinue -Recurse }
Rename-Item .\assets\$bulmaFolder "bulma"
if ((Get-ChildItem .\assets).Count -ne 1) {
Write-Error "Unknown Bulma archive content found (expected 'bulma' only):"
Get-ChildItem .\assets | Out-Host
Write-Error "Aborting - please check"
}
[void](Test-Path ./assets/bulma -PathType Container -ErrorAction Stop)
echo "BULMA_RELEASE=$($BulmaRelease.release)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8
echo "BULMA_ARCHIVE=$($BulmaRelease.archive)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8
Expand All @@ -87,12 +91,11 @@ jobs:
$BulmaArchive = "$ENV:BULMA_ARCHIVE"
$cwd = ($pwd.Path -replace "\\","\\") + "\\"
(Get-ChildItem . -recurse).FullName -replace $cwd, ""|sort
#git checkout -b "bulma-$BulmaRelease"
#Remove-Item $BulmaArchive -ErrorAction SilentlyContinue
#if (Test-Path $BulmaArchive { throw "failed to remove downloaded archive: $BulmaArchive" }
#git add .
#git commit -m "add Bulma $BulmaRelease"
git checkout -b "bulma-$BulmaRelease"
git add assets .github
git commit -m "add Bulma $BulmaRelease"
git push
git tag -a "$BulmaRelease" -m "packed Bulma release $BulmaRelease"
git push --tags
#git checkout main
#git branch -D "bulma-$BulmaRelease"
git checkout main
git branch -D "bulma-$BulmaRelease"

0 comments on commit 28d8b4a

Please sign in to comment.