6 Commits

Author SHA1 Message Date
314b7642ee fix promises import 2021-06-02 16:09:37 +02:00
1259b887e0 delete lib 2021-06-02 16:06:14 +02:00
aae7f9ffbb update files 2021-06-02 16:04:09 +02:00
0141d42d10 rename; build to lib 2021-06-02 16:04:02 +02:00
a6f0f86670 add build script 2021-06-02 16:01:49 +02:00
22aca2a29a add dist 2021-06-02 15:56:02 +02:00
6 changed files with 30714 additions and 5 deletions

3
.gitignore vendored
View File

@ -1,3 +1,5 @@
lib
# Logs # Logs
logs logs
*.log *.log
@ -80,7 +82,6 @@ typings/
# Nuxt.js build / generate output # Nuxt.js build / generate output
.nuxt .nuxt
dist
# Gatsby files # Gatsby files
.cache/ .cache/

30706
dist/index.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,9 +2,10 @@
"name": "nextcloud-artifacts-action", "name": "nextcloud-artifacts-action",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "lib/nextcloud-artifacts.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"build": "npx tsc && npx @vercel/ncc build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -1,5 +1,4 @@
import * as fsSync from 'fs' import * as fsSync from 'fs'
import * as fs from 'fs/promises'
import * as path from 'path' import * as path from 'path'
import core from '@actions/core'; import core from '@actions/core';
import * as os from 'os'; import * as os from 'os';
@ -10,6 +9,8 @@ import fetch, { HeadersInit } from 'node-fetch';
import { Inputs } from '../Inputs'; import { Inputs } from '../Inputs';
import btoa from 'btoa'; import btoa from 'btoa';
const fs = fsSync.promises;
interface FileSpec { interface FileSpec {
absolutePath: string, absolutePath: string,
uploadPath: string uploadPath: string

View File

@ -7,7 +7,7 @@
"skipLibCheck": true, /* Skip type checking of declaration files. */ "skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
"rootDir": "src", "rootDir": "src",
"outDir": "dist", "outDir": "lib",
"sourceMap": true, "sourceMap": true,
"lib": ["es6"] "lib": ["es6"]
} }