Skip to content

Commit

Permalink
Merge pull request #1796 from Artsdatabanken/master
Browse files Browse the repository at this point in the history
2023 versjon oppdatert
  • Loading branch information
helemork authored Nov 21, 2023
2 parents c50801b + 7c649cb commit 580c736
Show file tree
Hide file tree
Showing 42 changed files with 28,521 additions and 2,782 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: build and test PR

on:
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- run: npm install --legacy-peer-deps
- run: npm run test
1 change: 1 addition & 0 deletions .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tar czf $(basename $GITHUB_REPOSITORY).tar.gz -C build .
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build and publish

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- run: npm install --legacy-peer-deps
- run: npm run build
- name: Check downloaded files
run: ./.github/workflows/filecheck.sh
- name: Checkout
uses: actions/checkout@v3
with:
path: "./destinationRepo"
token: ${{secrets.PUSH_TOKEN}}
- name: Run deployment script
run: ./.github/workflows/deploy.sh
shell: bash
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ github.event.repository.name }}.tar.gz
tag: v_${{ github.run_number }}
workflow_dispatch:
runs-on: ubuntu-latest
steps:
- name: Fyrer NiN
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: artsdatabanken/nin-kart
event-type: fra_nin-kart
2 changes: 2 additions & 0 deletions .github/workflows/filecheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ls -l temp
ls -l build
1 change: 1 addition & 0 deletions .github/workflows/slack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export curl -X POST -H 'Content-type: application/json' --data '{"text":"deploy nin-kart"}' $1
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[![Build Status](https://travis-ci.org/Artsdatabanken/nin-kart-frontend.svg?branch=master)](https://travis-ci.org/Artsdatabanken/nin-kart-frontend)
[![Coverage Status](https://coveralls.io/repos/github/Artsdatabanken/nin-kart-frontend/badge.svg?branch=master)](https://coveralls.io/github/Artsdatabanken/nin-kart-frontend?branch=master)
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

# Natur i Norge (NiN) kart

![image](https://user-images.githubusercontent.com/17450081/55809911-0804fa80-5ae7-11e9-83e8-31c835f239c9.png)
Oppskrift for å komme i gang finner du i Wikien, se lenker nedenfor.
Oppsett av greiner og deployment er i endring per nå, men live-versjon har alltid krevt manuell trigger for å bygges.

## Nyttige lenker i prosjektet

Expand All @@ -17,6 +16,9 @@
- [Wiki til NiN-løsningen](https://github.com/Artsdatabanken/nin-kart-frontend/wiki/)
- [Bidra med data](https://github.com/Artsdatabanken/nin-kart-frontend/wiki/%C3%98nsker-du-%C3%A5-bidra-med-data%3F)

## Oppdatere datagrunnlag - lenker
- [Oversikt over arkitekturen](https://github.com/Artsdatabanken/nin-arkitektur-dokumentasjon)

## Relaterte prosjekter

- [Lookup API](https://github.com/Artsdatabanken/generic-substring-lookup-api)
Expand Down
Loading

0 comments on commit 580c736

Please sign in to comment.