diff --git a/.github/workflows/publish-swagger-spec.yml b/.github/workflows/publish-swagger-spec.yml index 9b6a3c6c..c6147801 100644 --- a/.github/workflows/publish-swagger-spec.yml +++ b/.github/workflows/publish-swagger-spec.yml @@ -19,11 +19,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Determine version - from input - id: determine_version - run: echo "::set-output name=version::${{ github.event.inputs.version }}" - shell: bash -# - name: Determine version - from env + - name: Determine version + run: echo ${{ github.event.inputs.version }} +# - name: Determine version # id: determine_version # run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}" # shell: bash @@ -36,13 +34,16 @@ jobs: coverage: none - run: composer install --no-interaction --prefer-dist - run: composer swagger:inline - - run: mkdir ${{ steps.determine_version.outputs.version }} - - run: mv docs/swagger/swagger-inline.json ${{ steps.determine_version.outputs.version }}/oas.json +# - run: mkdir ${{ steps.determine_version.outputs.version }} + - run: mkdir ${{ github.event.inputs.version }} +# - run: mv docs/swagger/swagger-inline.json ${{ steps.determine_version.outputs.version }}/oas.json + - run: mv docs/swagger/swagger-inline.json${{ github.event.inputs.version }}/oas.json - name: Publish spec uses: JamesIves/github-pages-deploy-action@4.1.7 with: repository-name: 'shlinkio/shlink-open-api-specs' branch: main - folder: ${{ steps.determine_version.outputs.version }} +# folder: ${{ steps.determine_version.outputs.version }} + folder: ${{ github.event.inputs.version }} target-folder: specs clean: false