Skip to content

fix ci

fix ci #359

Workflow file for this run

name: ci
on:
workflow_dispatch:
inputs:
configuration:
type: choice
description: Build Configuration
required: true
default: Release
options:
- Release
- Debug
push-preview:
type: string
description: Push preview branch?
required: true
default: "false"
push:
branches-ignore:
- "preview/**"
paths-ignore:
- LICENSE
- README.md
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
jobs:
lint:
uses: f2calv/gha-workflows/.github/workflows/lint.yml@v1
versioning:
uses: f2calv/gha-workflows/.github/workflows/gha-release-versioning.yml@v1
with:
tag-prefix: ''
tag-and-release: false
build:
runs-on: ubuntu-latest
needs: [versioning]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup token
run: |
#pwd
echo ${{ secrets.GOOGLE_PHOTOS_TOKEN_RESPONSE_BASE64 }} | base64 --decode | jq > Google.Apis.Auth.OAuth2.Responses.TokenResponse-${{ secrets.GOOGLE_PHOTOS_EMAIL }}.json
#cat Google.Apis.Auth.OAuth2.Responses.TokenResponse-${{ secrets.GOOGLE_PHOTOS_EMAIL }}.json
ls -lsa
echo "folder is;"
pwd
# - name: xdg-utils
# run: |
# sudo apt-get update
# sudo apt-get install xdg-utils -y
#- uses: f2calv/gha-dotnet-nuget@v2
- uses: f2calv/gha-dotnet-nuget@f2calv/2024-09-checkout
with:
checkout: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
configuration: ${{ inputs.configuration }}
push-preview: ${{ inputs.push-preview }}
version: ${{ needs.versioning.outputs.version }}
solution-name: CasCap.Apis.GooglePhotos.Release.sln
env:
CasCap__GooglePhotosOptions__User: [email protected]
CasCap__GooglePhotosOptions__ClientId: ${{ secrets.GOOGLE_PHOTOS_CLIENTID }}
CasCap__GooglePhotosOptions__ClientSecret: ${{ secrets.GOOGLE_PHOTOS_SECRET }}
CasCap__GooglePhotosOptions__FileDataStoreFullPathOverride: /home/runner/work/CasCap.Apis.GooglePhotos/CasCap.Apis.GooglePhotos
GOOGLE_PHOTOS_ACCESS_TOKEN: ${{ secrets.GOOGLE_PHOTOS_ACCESS_TOKEN }}
release:
needs: [versioning, build]
if: needs.versioning.outputs.release-exists == 'false'
&& (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || inputs.push-preview == 'true')
uses: f2calv/gha-workflows/.github/workflows/gha-release-versioning.yml@v1
permissions:
contents: write
with:
semVer: ${{ needs.versioning.outputs.version }}
tag-prefix: ''
move-major-tag: false