-
Notifications
You must be signed in to change notification settings - Fork 51
52 lines (50 loc) · 1.42 KB
/
release.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
on:
push:
tags:
- '*'
name: Upload Release Asset
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nfpm
run: |
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
sudo apt update
sudo apt install nfpm
- name: Build
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev uuid-dev
cmake -DCMAKE_BUILD_TYPE=Release -B ./build
cmake --build ./build
- name: Package
run: |
./dictu ops/pkgBuild.du
mv dictu dictu-linux-x86_64
- name: Release
uses: SierraSoftworks/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
overwrite: 'true'
files: |
dictu-linux-x86_64
dictu_${{ github.ref_name }}_amd64.deb
dictu_${{ github.ref_name }}_x86_64.apk
dictu_${{ github.ref_name }}.x86_64.rpm
- name: Docker Hub Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: dictulang/dictu:${{ github.ref_name }}
file: ./Docker/DictuUbuntuDockerfile
context: .