v1.0.0-alpha.1 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: [created] | |
name: Upload Release Assets | |
jobs: | |
build: | |
name: Upload Release Asset | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Build project # This would actually build your project, using zip for an example artifact | |
run: | | |
pushd ./plugin && zip -r ../plugin.zip . [email protected] && popd | |
pushd ./theme && zip -r ../theme.zip . && popd | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload Plugin Artifact | |
id: upload-plugin-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{steps.get_release.outputs.upload_url }} | |
asset_path: ./plugin.zip | |
asset_name: wpcloud-station-plugin.zip | |
asset_content_type: application/zip | |
- name: Upload Theme Artifact | |
id: upload-theme-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{steps.get_release.outputs.upload_url }} | |
asset_path: ./theme.zip | |
asset_name: wpcloud-station-theme.zip | |
asset_content_type: application/zip |