Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Co-authored-by: Aris Katsikaridis <arisk@transifex.com>
Co-authored-by: Iason Gavriilidis <jason@transifex.com>
Co-authored-by: John Rose <ollandosftw@gmail.com>
Co-authored-by: Konstantinos Bairaktaris <kbairak@transifex.com>
Co-authored-by: Konstantinos Giannousis <kgian@transifex.com>
Co-authored-by: Konstantinos Stavropoulos <kstav@transifex.com>
Co-authored-by: Thanos Kolovos <codegaze@gmail.com>
  • Loading branch information
7 people committed Jul 1, 2021
0 parents commit fb2d702
Show file tree
Hide file tree
Showing 75 changed files with 12,027 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

name: goreleaser

on:
release:
types: [created]
branches: [master]

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TKN }}
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---

on:
push:
branches: [devel]
pull_request:
branches: ["**"]
name: Test
jobs:
test:
env:
GO111MODULE: "on"
strategy:
matrix:
go-version: [1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: make local-build
- name: Test
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
make local-test-windows
else
make local-test
fi
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
bin/
# Ignore local configuration and translation files
/locale
/.tx
.idea/
tags
cli
.vscode

local_example/
32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
binary: tx
ldflags:
- -s -w -X 'github.com/transifex/cli/internal/txlib.Version={{.Version}}'
archives:
- replacements:
darwin: DarwinMacOs
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
name_template: "tx-client_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
Loading

0 comments on commit fb2d702

Please sign in to comment.