Skip to content

Commit

Permalink
setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
barjonp committed Sep 21, 2023
1 parent a170b4e commit 2e7d325
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
OpenSilver-Build:
#We should not run these steps on the forks by default.
if: github.repository_owner == 'OpenSilver'
if: github.repository_owner == 'barjonp'
runs-on: windows-latest
steps:
- uses: microsoft/setup-msbuild@v1.1
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
run: echo "::set-output name=suffix::$(date +'%Y-%m-%d-%H%M%S')-${{ env.GITHUB_SHA_SHORT }}"
- name: Format Package Version
id: format-version
run: echo "::set-output name=version::${{ env.next-release-version }}-preview-${{ steps.format-suffix.outputs.suffix }}"
run: echo "::set-output name=version::${{ env.next-release-version }}-preview-cl-${{ steps.format-suffix.outputs.suffix }}"
- name: Build Simulator
working-directory: build
run: msbuild slnf/OpenSilver.Simulator.slnf -p:Configuration=SL -clp:ErrorsOnly -restore
Expand All @@ -71,9 +71,6 @@ jobs:
with:
name: OpenSilver
path: "build/output/OpenSilver"
- name: Upload packages
run: |
dotnet nuget push "build\output\OpenSilver\*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ env.GITHUB_REPOSITORY_OWNER_PART }}/index.json
- name: Upload packages to MyGet
run: |
dotnet nuget push "build\output\OpenSilver\*.nupkg" -k ${{ secrets.MYGET_TOKEN }} -s https://www.myget.org/F/opensilver/api/v2/package
dotnet nuget push "build\output\OpenSilver\*.nupkg" -k ${{ secrets.MYGET_TEMP_TOKEN }} -s https://www.myget.org/F/opensilver-temp/api/v2/package

0 comments on commit 2e7d325

Please sign in to comment.