mirror of
https://github.com/InsanusMokrassar/ConfigurableInlineTelegramBot.git
synced 2024-11-22 00:03:53 +00:00
update gihub flows
This commit is contained in:
parent
c2cb9e3f28
commit
ef3313ce8d
12
.github/workflows/build.yml
vendored
Normal file
12
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Publish package to GitHub Packages
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
publishing:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
- name: Build
|
||||||
|
run: ./gradlew build
|
46
.github/workflows/build_and_publish.yml
vendored
46
.github/workflows/build_and_publish.yml
vendored
@ -1,23 +1,23 @@
|
|||||||
name: Publish package to GitHub Packages
|
#name: Publish package to GitHub Packages
|
||||||
on: [push]
|
#on: [push]
|
||||||
jobs:
|
#jobs:
|
||||||
publishing:
|
# publishing:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v1
|
# - uses: actions/setup-java@v1
|
||||||
with:
|
# with:
|
||||||
java-version: 1.8
|
# java-version: 1.8
|
||||||
- name: Rewrite version
|
# - name: Rewrite version
|
||||||
run: |
|
# run: |
|
||||||
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
# branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
|
||||||
cat gradle.properties | sed -e "s/^library_version=\([0-9\.]*\)/library_version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
|
# cat gradle.properties | sed -e "s/^library_version=\([0-9\.]*\)/library_version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
|
||||||
rm gradle.properties
|
# rm gradle.properties
|
||||||
mv gradle.properties.tmp gradle.properties
|
# mv gradle.properties.tmp gradle.properties
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: ./gradlew build
|
# run: ./gradlew build
|
||||||
- name: Publish
|
# - name: Publish
|
||||||
run: ./gradlew --no-parallel publishAllPublicationsToGithubPackagesRepository
|
# run: ./gradlew --no-parallel publishAllPublicationsToGithubPackagesRepository -x signJsPublication -x signJvmPublication -x signKotlinMultiplatformPublication -x signMetadataPublication -x signAndroidDebugPublication -x signAndroidReleasePublication -x signKotlinMultiplatformPublication
|
||||||
env:
|
# env:
|
||||||
GITHUBPACKAGES_USER: ${{ github.actor }}
|
# GITHUBPACKAGES_USER: ${{ github.actor }}
|
||||||
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
56
.github/workflows/build_and_publish_docker.yml
vendored
56
.github/workflows/build_and_publish_docker.yml
vendored
@ -1,28 +1,28 @@
|
|||||||
name: Publish Docker image
|
#name: Publish Docker image
|
||||||
on: [push]
|
#on: [push]
|
||||||
jobs:
|
#jobs:
|
||||||
push_to_registry:
|
# push_to_registry:
|
||||||
name: Push Docker image to Docker Hub
|
# name: Push Docker image to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Check out the repo
|
# - name: Check out the repo
|
||||||
uses: actions/checkout@v2
|
# uses: actions/checkout@v2
|
||||||
- uses: actions/setup-java@v1
|
# - uses: actions/setup-java@v1
|
||||||
with:
|
# with:
|
||||||
java-version: 1.8
|
# java-version: 1.8
|
||||||
- name: Build
|
# - name: Build
|
||||||
run: ./gradlew build
|
# run: ./gradlew build
|
||||||
- name: Docker meta
|
# - name: Docker meta
|
||||||
id: docker_meta
|
# id: docker_meta
|
||||||
uses: crazy-max/ghaction-docker-meta@v1
|
# uses: crazy-max/ghaction-docker-meta@v1
|
||||||
with:
|
# with:
|
||||||
images: name/app
|
# images: name/app
|
||||||
tag-sha: true
|
# tag-sha: true
|
||||||
tag-latest: false
|
# tag-latest: false
|
||||||
- name: Push to Docker Hub
|
# - name: Push to Docker Hub
|
||||||
uses: docker/build-push-action@v1
|
# uses: docker/build-push-action@v1
|
||||||
with:
|
# with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
context: .
|
# context: .
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
# tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
|
Loading…
Reference in New Issue
Block a user