Skip to content

Commit

Permalink
fix: using GH artifacts to pass data between workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-COLLIN committed Jun 2, 2024
1 parent b8b232a commit cb69ecf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
# --- SETUP ---
- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -17,6 +18,7 @@ jobs:
with:
node-version: '18'

# --- BUILD ---
- name: Install dependencies
run: npm install

Expand All @@ -26,6 +28,13 @@ jobs:
- name: Prepare source code zip
run: zip -r releases/save-my-phind_${{ github.run_number }}_firefox_source.zip src/

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: release-assets
path: releases/

# --- TAG ---
- name: Get version from package.json
id: package_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
# --- SETUP ---
- name: Checkout code
uses: actions/checkout@v2

- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: release-assets
path: releases/

# --- CHANGELOG ---
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4
Expand All @@ -29,6 +37,7 @@ jobs:
]
}
# --- RELEASE ---
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -85,6 +94,7 @@ jobs:
asset_name: save-my-phind_${{ github.ref_name }}_firefox.zip
asset_content_type: application/zip

# --- DISCUSSION ---
- name: Create a new GitHub Discussion
uses: abirismyname/[email protected]
env:
Expand All @@ -95,7 +105,7 @@ jobs:
repository-id: ${{ github.repository_id }}
category-id: Announcements


# --- PUBLISH ---
- name: Browser Platform Publish
uses: PlasmoHQ/[email protected]
with:
Expand Down

0 comments on commit cb69ecf

Please sign in to comment.