-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (46 loc) · 1.46 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
53
54
55
56
57
58
name: Create a new release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Create .env file
run: cp .env.example .env
- name: Install jq
run: sudo apt-get install -y jq
- name: Install gzip
run: sudo apt-get install -y gzip
- name: Install npm dependencies
run: npm install
- name: Run auto.sh script
run: ./auto.sh Albanian English
- name: Tag the repository
id: tag
run: |
# See https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names
TAG=v$(date -Iseconds | sed 's/[T:\+]/-/g')
echo "$TAG"
echo "tag=$TAG" >> $GITHUB_OUTPUT
git tag -a $TAG -m "Published version $TAG" ${GITHUB_SHA}
git push origin $TAG
- name: Release
uses: softprops/action-gh-release@v2
with:
name: Test auto release
tag_name: ${{ steps.tag.outputs.tag }}
prerelease: true
generate_release_notes: true
files: |
data/language/sq/en/abc-sq-en.zip
data/language/sq/en/abc-sq-en-ipa.zip