Skip to content

Fix passing secrets

Fix passing secrets #6

# $schema: https://json.schemastore.org/github-workflow
name: 'Build and release plugin'
on:
release:
types:
- released
workflow_dispatch:
jobs:
test:
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/test.yaml@master
with:
dotnet-version: "8.0"
build:
needs: test
uses: .github/workflows/build.yml@main

Check failure on line 18 in .github/workflows/build-upload-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-upload-publish.yml

Invalid workflow file

invalid value workflow reference: references to workflows must be prefixed with format 'owner/repository/' or './' for local workflows
upload:
needs: build
uses: .github/workflows/upload.yml@main
upload-repo:
needs: build
uses: .github/workflows/upload-repo.yml@main
with:
repo: "jellyfin"
secrets:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
publish:
if: ${{ contains(github.repository, 'lyarenei/') }}
needs: upload
uses: .github/workflows/publish.yml@main
with:
repo: "jellyfin"
secrets:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}