-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.21 KB
/
build-artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build artifacts
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '8.0.202'
java-package: jdk
architecture: x64
- run: sudo sh -c 'echo "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib" >>/etc/apt/sources.list'
- run: wget https://packages.atlassian.com/api/gpg/key/public
- run: sudo apt-key add public
- run: sudo apt-get update
- run: sudo apt-get install atlassian-plugin-sdk
- run: atlas-version
- run: atlas-unit-test
- run: atlas-package
- run: ls -l ./target
- name: Upload artifacts # Find artifacts under actions/jobs
uses: actions/upload-artifact@v2
with:
name: confluence-plugin-addon
path: ./target/confluence-addon*.jar