Skip to content

Commit

Permalink
actions++
Browse files Browse the repository at this point in the history
  • Loading branch information
vpenades committed May 12, 2024
1 parent f827c94 commit 451088e
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/BuildPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
# --------------------------------------------- checkout repo

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4

# --------------------------------------------- build

- name: Build
run: |
chmod +x ./build.sh
./build.sh ${{inputs.nuget-semver}}
chmod +x ./SharpGLTF.build.sh
./SharpGLTF.build.sh ${{inputs.nuget-semver}}
# --------------------------------------------- publish

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/IncrementVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Increment version

on: [ workflow_dispatch, workflow_call ]

jobs:
job_increment:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Increment variable
uses: action-pack/increment@v2
with:
name: 'SharpGLTF_Version'
token: ${{ secrets.VARIABLES_ACCESS }}

- name: Use the incremented value
run: |
echo "New version code is ${{ steps.increment.outputs.new_value }}"
2 changes: 1 addition & 1 deletion .github/workflows/PublishToGithub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build_job:
uses: ./.github/workflows/BuildPackages.yml
with:
nuget-semver: 1.0.0-Preview-DATE
nuget-semver: ${{ vars.SharpGLTF_Version }}-Preview-DATE

publish_job:
needs: build_job
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PublishToNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build_job:
uses: ./.github/workflows/BuildPackages.yml
with:
nuget-semver: 1.0.0-alpha${{ vars.SharpGLTF_AlphaVersion }}
nuget-semver: ${{ vars.SharpGLTF_Version }}-alpha${{ vars.SharpGLTF_AlphaVersion }}

publish_job:
needs: build_job
Expand Down
1 change: 1 addition & 0 deletions build.sh → SharpGLTF.Build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# this script can be run directly or from the github actions.

# set input or default

Expand Down
6 changes: 6 additions & 0 deletions SharpGLTF.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{29566B60-311D-42A0-9E8D-C48DECDD587F}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.github\workflows\BuildPackages.yml = .github\workflows\BuildPackages.yml
.github\workflows\IncrementAlpha.yml = .github\workflows\IncrementAlpha.yml
.github\workflows\IncrementVersion.yml = .github\workflows\IncrementVersion.yml
.github\workflows\PublishToGithub.yml = .github\workflows\PublishToGithub.yml
.github\workflows\PublishToNuget.yml = .github\workflows\PublishToNuget.yml
README.md = README.md
SharpGLTF.Build.sh = SharpGLTF.Build.sh
SharpGLTF.ruleset = SharpGLTF.ruleset
.github\workflows\Test.yml = .github\workflows\Test.yml
.github\workflows\TestCommit.yml = .github\workflows\TestCommit.yml
EndProjectSection
EndProject
Expand Down

0 comments on commit 451088e

Please sign in to comment.