Skip to content

Commit

Permalink
ci: add download url publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Aug 1, 2024
1 parent c9e0eaf commit 9d443a9
Show file tree
Hide file tree
Showing 6 changed files with 246,042 additions and 18 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
workflow_call:
inputs:
download_url:
default: false
type: boolean
check:
default: false
type: boolean
Expand Down Expand Up @@ -56,6 +59,7 @@ jobs:
run: make build-preview

- name: Upload build
id: build-upload-step
uses: actions/upload-artifact@v4
with:
name: Lilex
Expand All @@ -74,3 +78,14 @@ jobs:
with:
name: Preview
path: preview/dist

- name: Output download URL
if: inputs.download_url
run: echo "${{ steps.build-upload-step.outputs.artifact-url }}" > download_url.txt

- name: Upload URL
if: inputs.download_url
uses: actions/upload-artifact@v4
with:
name: URL
path: download_url.txt
3 changes: 3 additions & 0 deletions .github/workflows/italic_progress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ on:
jobs:
build:
uses: ./.github/workflows/build.yaml
with:
download_url: true
publish:
permissions: write-all
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 9d443a9

Please sign in to comment.