Skip to content

Commit 5c14fed

Browse files
committed
chore: revert to previous rolling release strategy
Revert to a rolling release strategy, where everything that lands in `main` gets continously deployed to prod.
1 parent a438798 commit 5c14fed

14 files changed

+3568
-556
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/dependabot-on-develop.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: 18
13+
node-version: 20
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: '1.23.9'
1417
- run: npm ci
1518
- run: npm run build
1619
env:
1720
DEFAULT_COUNTRY_SECTION: italy
1821
ELASTIC_URL: "https://elasticsearch.developers.italia.it/indicepa_pec/_search"
19-
VALIDATOR_URL: "https://publiccode-validator.developers.italia.it/pc/validate"
20-
VALIDATOR_REMOTE_URL: "https://publiccode-validator.developers.italia.it/pc/validateURL"
2122
- run: |
2223
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/italia/publiccode-editor.git
2324
echo publiccode-editor.developers.italia.it > dist/CNAME
2425
25-
npm run gdeploy -m "Automated deployment: ${CIRCLE_SHA1} [ci skip]"
26+
npm run deploy -m "Automated deployment: ${CIRCLE_SHA1} [ci skip]"
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/finish-release.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*'
5+
6+
jobs:
7+
release:
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
# Always release the tip of the default branch
17+
ref: main
18+
- uses: italia/publiccode-softwareversion-check-action@v1.2.1
19+
- uses: peter-evans/create-pull-request@v3
20+
with:
21+
title: "chore: update softwareVersion and releaseDate in publiccode.yml"
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*'
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
# Always release the tip of the default branch
14+
ref: main
15+
16+
- name: git config
17+
run: |
18+
git config user.name "${GITHUB_ACTOR}"
19+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
20+
21+
- run: npm ci
22+
- run: npm run release --ci --no-increment
23+
env:
24+
DEFAULT_COUNTRY_SECTIONS: italy
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ jobs:
1212
with:
1313
go-version: '1.23.9'
1414
- run: npm ci
15-
- run: npm run build:licenses
16-
- run: npm run build:wasm
15+
- run: npm run build
1716
- run: npm run test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dist-ssr
2424
*.sw?
2525

2626
.env
27-
#src/generated
27+
src/generated
2828
*.tsbuildinfo
2929
# Local Netlify folder
3030
.netlify

0 commit comments

Comments
 (0)