• R/O
  • HTTP
  • SSH
  • HTTPS

dictzip-java: Commit


Commit MetaInfo

Revision1e12fe75eb9a21c2b0235099f29a251135c3bde4 (tree)
Zeit2022-07-11 00:31:22
AutorHiroshi Miura <miurahr@linu...>
CommiterHiroshi Miura

Log Message

migrate to azure-pipelines

Ändern Zusammenfassung

  • delete: .github/FUNDING.yml
  • delete: .github/dependabot.yml
  • delete: .github/workflows/build-release-and-upload.yml
  • delete: .github/workflows/codeql-analysis.yml
  • delete: .github/workflows/gradle-build-on-push.yml
  • add: azure-pipelines.yml (diff)

Diff

--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,12 +0,0 @@
1-# These are supported funding model platforms
2-
3-github: [miurahr] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-patreon: # Replace with a single Patreon username
5-open_collective: # Replace with a single Open Collective username
6-ko_fi: # Replace with a single Ko-fi username
7-tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-liberapay: miurahr
10-issuehunt: # Replace with a single IssueHunt username
11-otechie: # Replace with a single Otechie username
12-custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,11 +0,0 @@
1-version: 2
2-updates:
3- - package-ecosystem: "github-actions"
4- directory: "/"
5- schedule:
6- interval: "weekly"
7- - package-ecosystem: gradle
8- directory: "/"
9- schedule:
10- interval: "daily"
11- open-pull-requests-limit: 200
\ No newline at end of file
--- a/.github/workflows/build-release-and-upload.yml
+++ /dev/null
@@ -1,90 +0,0 @@
1-name: Upload Release Asset
2-
3-on:
4- push:
5- tags:
6- - 'v*'
7-
8-jobs:
9- build:
10- name: Upload Release Asset
11- runs-on: ubuntu-latest
12- steps:
13- - name: Checkout code
14- uses: actions/checkout@v3
15- - uses: actions/setup-java@v3
16- with:
17- distribution: 'temurin'
18- java-version: '8'
19- - name: Get the version
20- id: get_version
21- run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
22- - uses: gradle/gradle-build-action@v2
23- - run: ./gradlew check build assemble
24- - name: Create Release
25- id: create_release
26- uses: actions/create-release@v1
27- env:
28- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29- with:
30- tag_name: ${{ github.ref }}
31- release_name: Release v${{ steps.get_version.outputs.VERSION }}
32- draft: false
33- prerelease: false
34- - name: Publish package to OSSRH
35- run: ./gradlew publishToSonatype
36- env:
37- ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }}
38- ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_KEY_PASSPHARASE }}
39- SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
40- SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }}
41- - name: Upload Release Asset(cli.zip)
42- id: upload-release-asset-zip
43- uses: actions/upload-release-asset@v1
44- env:
45- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46- with:
47- upload_url: ${{ steps.create_release.outputs.upload_url }}
48- asset_path: dictzip-cli/build/distributions/dictzip-${{ steps.get_version.outputs.VERSION }}.zip
49- asset_name: dictzip-${{ steps.get_version.outputs.VERSION }}.zip
50- asset_content_type: application/zip
51- - name: Upload Release Asset(cli.tgz)
52- id: upload-release-asset-tgz
53- uses: actions/upload-release-asset@v1
54- env:
55- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56- with:
57- upload_url: ${{ steps.create_release.outputs.upload_url }}
58- asset_path: dictzip-cli/build/distributions/dictzip-${{ steps.get_version.outputs.VERSION }}.tgz
59- asset_name: dictzip-${{ steps.get_version.outputs.VERSION }}.tgz
60- asset_content_type: application/x-gtar
61- - name: Upload Release Asset(lib.jar)
62- id: upload-release-asset-lib
63- uses: actions/upload-release-asset@v1
64- env:
65- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66- with:
67- upload_url: ${{ steps.create_release.outputs.upload_url }}
68- asset_path: dictzip-lib/build/libs/dictzip-lib-${{ steps.get_version.outputs.VERSION }}.jar
69- asset_name: dictzip-lib-${{ steps.get_version.outputs.VERSION }}.jar
70- asset_content_type: application/java-archive
71- - name: Upload Release Asset(lib.sources.jar)
72- id: upload-release-asset-sources
73- uses: actions/upload-release-asset@v1
74- env:
75- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76- with:
77- upload_url: ${{ steps.create_release.outputs.upload_url }}
78- asset_path: dictzip-lib/build/libs/dictzip-lib-${{ steps.get_version.outputs.VERSION }}-sources.jar
79- asset_name: dictzip-lib-${{ steps.get_version.outputs.VERSION }}-sources.jar
80- asset_content_type: application/java-archive
81- - name: Upload Release Asset(lib.javadoc.jar)
82- id: upload-release-asset-javadoc
83- uses: actions/upload-release-asset@v1
84- env:
85- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86- with:
87- upload_url: ${{ steps.create_release.outputs.upload_url }}
88- asset_path: dictzip-lib/build/libs/dictzip-lib-${{ steps.get_version.outputs.VERSION }}-javadoc.jar
89- asset_name: dictzip-lib-${{ steps.get_version.outputs.VERSION }}-javadoc.jar
90- asset_content_type: application/java-archive
--- a/.github/workflows/codeql-analysis.yml
+++ /dev/null
@@ -1,41 +0,0 @@
1-name: "CodeQL"
2-
3-on:
4- push:
5- branches:
6- - master
7- - releases/*
8- pull_request:
9- types:
10- - opened
11- - synchronize
12- - reopened
13-
14-jobs:
15- analyze:
16- name: Analyze
17- runs-on: ubuntu-latest
18- permissions:
19- actions: read
20- contents: read
21- security-events: write
22-
23- strategy:
24- fail-fast: false
25- matrix:
26- language: [ 'java' ]
27-
28- steps:
29- - name: Checkout repository
30- uses: actions/checkout@v3
31-
32- - name: Initialize CodeQL
33- uses: github/codeql-action/init@v2
34- with:
35- languages: ${{ matrix.language }}
36-
37- - name: Autobuild
38- uses: github/codeql-action/autobuild@v2
39-
40- - name: Perform CodeQL Analysis
41- uses: github/codeql-action/analyze@v2
--- a/.github/workflows/gradle-build-on-push.yml
+++ /dev/null
@@ -1,29 +0,0 @@
1-name: Gradle check
2-
3-on:
4- push:
5- branches:
6- - master
7- - releases/*
8- pull_request:
9- types:
10- - opened
11- - synchronize
12- - reopened
13-
14-jobs:
15- gradle:
16- runs-on: ubuntu-latest
17- steps:
18- - uses: actions/checkout@v3
19- - uses: actions/setup-java@v3
20- with:
21- distribution: 'temurin'
22- java-version: '8'
23- - name: install dictzip command
24- run: sudo apt-get install -y dictzip
25- - uses: gradle/gradle-build-action@v2
26- - uses: kiancross/checkstyle-annotations-action@v1
27- - run: ./gradlew check
28- env:
29- CI: true
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,27 @@
1+trigger:
2+- main
3+
4+jobs:
5+ job: gradle
6+ pool:
7+ image: ubuntu-latest
8+ steps:
9+ - displayName: install dictzip command
10+ bash: sudo apt-get install -y dictzip
11+ - task: Gradle@2
12+ inputs:
13+ javaHomeOption: 'JDKVersion'
14+ jdkVersionOption: '1.8'
15+ tasks: 'check'
16+## when library project to publish to OSSRH
17+# - task: Gradle@2
18+# displayName: Publish package to OSSRH
19+# inputs:
20+# javaHomeOption: 'JDKVersion'
21+# jdkVersionOption: '1.8'
22+# tasks: 'publishToSonatype'
23+# env:
24+# ORG_GRADLE_PROJECT_signingKey: $( secrets_GPG_SECRET_KEY )
25+# ORG_GRADLE_PROJECT_signingPassword: $( secrets_GPG_KEY_PASSPHARASE )
26+# SONATYPE_USER: $( secrets_SONATYPE_USER )
27+# SONATYPE_PASS: $( secrets_SONATYPE_PASS )
Show on old repository browser