This commit is contained in:
parent
4b60617ce3
commit
bf9403538f
2 changed files with 56 additions and 56 deletions
|
@ -1,32 +1,32 @@
|
|||
name: analyze
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
schedule:
|
||||
- cron: '24 21 * * 6'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'java' ]
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
- name: autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
- name: perform CodeQL analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
# name: analyze
|
||||
#
|
||||
# on:
|
||||
# push:
|
||||
# branches: [ main ]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
# schedule:
|
||||
# - cron: '24 21 * * 6'
|
||||
#
|
||||
# jobs:
|
||||
# analyze:
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# language: [ 'java' ]
|
||||
# permissions:
|
||||
# actions: read
|
||||
# contents: read
|
||||
# security-events: write
|
||||
# steps:
|
||||
# - name: checkout repository
|
||||
# uses: actions/checkout@v2
|
||||
# - name: initialize CodeQL
|
||||
# uses: github/codeql-action/init@v1
|
||||
# with:
|
||||
# languages: ${{ matrix.language }}
|
||||
# - name: autobuild
|
||||
# uses: github/codeql-action/autobuild@v1
|
||||
# - name: perform CodeQL analysis
|
||||
# uses: github/codeql-action/analyze@v1
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
name: publish
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: set up java
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '11'
|
||||
- name: build with maven
|
||||
run: mvn --batch-mode --file pom.xml package
|
||||
- name: upload to release
|
||||
uses: skx/github-action-publish-binaries@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
args: 'bundle/target/*.ear'
|
||||
# name: publish
|
||||
#
|
||||
# on:
|
||||
# release:
|
||||
# types: [created]
|
||||
#
|
||||
# jobs:
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: checkout repository
|
||||
# uses: actions/checkout@v2
|
||||
# - name: set up java
|
||||
# uses: actions/setup-java@v1
|
||||
# with:
|
||||
# java-version: '11'
|
||||
# - name: build with maven
|
||||
# run: mvn --batch-mode --file pom.xml package
|
||||
# - name: upload to release
|
||||
# uses: skx/github-action-publish-binaries@master
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ github.token }}
|
||||
# with:
|
||||
# args: 'bundle/target/*.ear'
|
||||
|
|
Loading…
Add table
Reference in a new issue