Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
idleyui committed Sep 6, 2023
1 parent 6def993 commit 2d17a24
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: OSS

on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Java and Maven
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Publish package
- run: sudo -v ; curl https://gosspublic.alicdn.com/ossutil/install.sh | sudo bash
- run: mvn -B package -DskipTests=true -Dgpg.skip=true -Djavadoc.skip=true
- run: ossutil64 -e ${{secrets.OSS_ENDPOINT}} -i {{secrets.OSS_KEY_ID}} -k {{secrets.OSS_KEY_SECRET}} cp odps-console-dist-public/target/odpscmd_public.zip oss://odps-repo/odpscmd/test/

0 comments on commit 2d17a24

Please sign in to comment.