mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 23:23:42 -06:00
Changed how version is determined
This commit is contained in:
parent
5c114b584d
commit
295de5be8e
17
.github/workflows/publish-swagger-spec.yml
vendored
17
.github/workflows/publish-swagger-spec.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user