forked from mattermost-community/focalboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds plugin actions to the project's CI (mattermost-community#471)
* Adds plugin actions to the project's CI * Remove the version number from the generated artifact * Change job name to something more descriptive * Switch back to workflow_dispatch
- Loading branch information
1 parent
f43e402
commit b327bc7
Showing
7 changed files
with
124 additions
and
153 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Plugin-Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
|
||
plugin-release: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Replace token 1 | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/server/services/telemetry/telemetry.go | ||
|
||
- name: npm install | ||
run: cd webapp; npm install --no-optional | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.1.0 | ||
|
||
- name: Build webapp | ||
run: make webapp | ||
|
||
- name: npm install plugin dependencies | ||
run: cd mattermost-plugin/webapp; npm install --no-optional | ||
|
||
- name: Build plugin | ||
run: cd mattermost-plugin; make dist | ||
env: | ||
BUILD_NUMBER: ${{ github.run_id }} | ||
|
||
- name: Rename plugin file | ||
run: cd mattermost-plugin/dist; mv focalboard-*.tar.gz mattermost-plugin-focalboard.tar.gz | ||
|
||
- name: Upload plugin artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: mattermost-plugin-focalboard.tar.gz | ||
path: ${{ github.workspace }}/mattermost-plugin/dist/mattermost-plugin-focalboard.tar.gz |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.